Som*_*ath 6 windows xampp openssl ssl-certificate
makecert
然后按Enter键,然后发生此错误.
我尝试了提供的解决方案,但这对我没用.
例如:设置OPENSSL_CONF = c:/OpenSSL_Win64/bin/openssl.cnf
<pre>WARNING: can't open config file: ./bin/openssl.cnf
Unable to load config info from ./bin/openssl.cnf
WARNING: can't open config file: ./bin/openssl.cnf
Error opening Private Key privkey.pem
5344:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
bss_file.c:398:fopen('privkey.pem','rb')
5344:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:40
0:
unable to load Private Key
WARNING: can't open config file: ./bin/openssl.cnf
Loading 'screen' into random state - done
server.csr: No such file or directory
Could Not Find C:\xampp\apache\.rnd
Could Not Find C:\xampp\apache\privkey.pem
Could Not Find C:\xampp\apache\server.csr
The system cannot find the file specified.
The system cannot find the file specified.
-----
Das Zertifikat wurde erstellt.
The certificate was provided.</pre>Run Code Online (Sandbox Code Playgroud)
当您使用OpenSSL软件包或Windows安装程序时,此错误主要发生在Windows计算机上!
原因是OpenSSL无法找到openssl.cnf文件!
我建议您执行以下操作(仅限Windows):
以管理员身份打开命令提示符(少数OpenSSL命令以随机状态打开),因此当OpenSSL尝试在磁盘上写入内容时,它会失败.
现在,在运行任何OpenSSL命令之前,请键入以下内容:
set OPENSSL_CONF=c:\[PATH TO YOUR OPENSSL DIRECTORY]\bin\openssl.cfg
C:\OpenSSL-Win32\bin\openssl.cfg.对于Windows(x64位)使用C:\OpenSSL-Win64\bin\openssl.cfg!你现在这样做之后就可以使用你的OpenSSL了.尝试openssl version,错误消失了.
请记住,每次打开命令提示符时都必须运行上面的命令,除非将其设置为环境变量.
你的问题可能是:
OpenSSL_Win64.它可能应该是OpenSSL-Win64!openssl.cnf但必须是openssl.cfg!阅读:
| 归档时间: |
|
| 查看次数: |
36391 次 |
| 最近记录: |