且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OpenSSL 和读取 openssl.conf 文件时出错

更新时间:2022-12-08 10:29:37

在 Windows 上,您还可以设置环境属性 OPENSSL_CONF.例如,您可以从命令行输入:

On Windows you can also set the environment property OPENSSL_CONF. For example from the commandline you can type:

set OPENSSL_CONF=c:/libs/openssl-0.9.8k/openssl.cnf

要验证它,您可以键入:

to validate it you can type:

echo %OPENSSL_CONF%

您还可以将其设置为计算机环境变量的一部分,以便默认情况下所有用户和服务都可以使用它.例如,请参见 Windows NT 中的环境变量如何在 Windows XP 中管理环境变量.

You can also set it as part of the computer's environmental variables so all users and services have it available by default. See, for example, Environment variables in Windows NT and How To Manage Environment Variables in Windows XP.

现在您可以运行 openssl 命令而无需传递配置位置参数.

Now you can run openssl commands without having to pass the config location parameter.