输入指令:
OpenSSL> ca -in certreq.txt -out server.pem -config C:\openssl\openssl.cnf
报错信息:
Using configuration from C:\openssl\openssl.cnf
Loading 'screen' into random state - done
Enter pass phrase for ./demoCA/private/cakey.pem:
certreq.txt: No such file or directory
5068:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\bss_file.c:356:fopen('certreq.txt','rb')
5068:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:358:
error in ca
主要错误:
directory:.\crypto\bio\bss_file.c:356:fopen('certreq.txt','rb')
原因:找不到certreq.txt
解决方法:
创建一个同名txt,里面是在IIS中获取的证书请求
输入指令时加上certreq.txt
的绝对路径,例如OpenSSL> ca -in C:\certreq.txt -out server.pem -config C:\openssl\openssl.cnf
如果certreq.txt里没有对应的证书信息则会报错:
Using configuration from C:\openssl\openssl.cnf
Loading 'screen' into random state - done
Enter pass phrase for ./demoCA/private/cakey.pem:
Error reading certificate request in certreq.txt
5564:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:648:Expecting: CERTIFICATE REQUEST
error in ca
主要错误:
5564:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:648:Expecting: CERTIFICATE REQUEST
解决方法:
创建一个同名txt,里面是在IIS中获取的证书请求
版权声明:本文为xcyja原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。