如何在Windows上设置OPENSSLDIR,它的含义是什么?


0

我使用的是Windows 10 Pro x64, OpenSSL的,0.9.8k_X64

我跑命令

openssl version -a

我收到了结果 openssl版本-a

OpenSSL 0.9.8k 25 Mar 2009
built on: Thu Jul 23 09:35:27 2009
platform: VC-WIN64A
options:  bn(64,64) md2(int) rc4(ptr,int) des(idx,cisc,4,long) idea(int) blowfish(idx)
compiler: cl  /MD /Ox /W3 /Gs0 /GF /Gy /nologo -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WIN32 -DOPENSSL_SYSNAME_WINNT -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_USE_APPLINK -I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE
OPENSSLDIR: "c:openssl/ssl"

我专注于 OPENSSLDIR:“c:openssl / ssl”

我试着设定 OPENSSLDIR 在文件中 openssl.cnf

#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#

# This definition stops the following lines choking if HOME isn't
# defined.
# HOME          = .
HOME            = #
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#

# This definition stops the following lines choking if HOME isn't
# defined.
# HOME          = .
HOME            = C:/Users/vy_pc/Desktop/ssl_vy/WinOpenSSL/openssl-0.9.8k_X64

RANDFILE        = $ENV::HOME/.rnd

(全部内容的一部分) 但是我再次运行命令

openssl version -a

的价值 OPENSSLDIR 仍然像以前一样。

请解释一下 OPENSSLDIR,如何使用,如何在Windows操作系统上配置?

Answers:


1

OPENSSLDIR是在编译时设置的值。它指定查找配置或CA证书的默认位置。无法更改此值。
除此之外,你使用的openssl版本很糟糕,不受支持,可能有bug,并且不支持现代TLS版本,如TLS 1.2。不要使用它。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.