Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 无法在XAMPP中生成证书签名请求_Ssl_Openssl_Xampp_Csr - Fatal编程技术网

Ssl 无法在XAMPP中生成证书签名请求

Ssl 无法在XAMPP中生成证书签名请求,ssl,openssl,xampp,csr,Ssl,Openssl,Xampp,Csr,我试着遵循这个指南 基本上 C:\xampp\php\extras\openssl>openssl genrsa-out private.key 2048 然后 C:\xampp\apache\bin>openssl-req-new-key private.key-config“C:\xampp\php\extr as\openssl“-out request.csr 我得到一个错误: error on line -1 of C:\xampp\php\extras\openssl 4456:e

我试着遵循这个指南

基本上

C:\xampp\php\extras\openssl>openssl genrsa-out private.key 2048

然后

C:\xampp\apache\bin>openssl-req-new-key private.key-config“C:\xampp\php\extr
as\openssl“-out request.csr

我得到一个错误:

error on line -1 of C:\xampp\php\extras\openssl
4456:error:02001005:system library:fopen:Input/output error:.\crypto\bio\bss_fil
e.c:126:fopen('C:\xampp\php\extras\openssl','rb')
4456:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c
:131:
4456:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con
f\conf_def.c:199:
这是我的系统信息

Windows NT LGLAC046 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 

OPENSSL_CONF    C:/xampp/apache/bin/openssl.cnf 

SSL Version     OpenSSL/0.9.8y 

此错误是什么以及如何生成CSR?

正如错误所述,您没有openssl.cnf文件…Ops我复制了错误的错误。现在修复了设置OPENSSL\u CONF=C:\xampp\php\extras\OPENSSL\bin\OPENSSL.cfg的问题。由于Windows路径发生了变化,这听起来似乎是对的。@jww,你的技巧奏效了。你可以回答下面的问题,我表示同意