9748:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\bss_file.c:168:fopen

转自VC错误:http://www.vcerror.com/?p=2027
问题描述:

用openssl自做CA自签发SSL证书,但执行命令:
openssl req -new -key server.key -out server.csr -config openssl.cnf
生成Certificate Signing Request(CSR),生成的csr文件交给CA签名后形成服务端自己的证书.
这个时候报如下错误:
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
error on line -1 of openssl.cnf
9748:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
bss_file.c:168:fopen('openssl.cnf','rb')
9748:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file
.c:171:
9748:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\c
onf\conf_def.c:195:


解决方法:
具体的解决方法参考文章:http://www.vcerror.com/?p=2027

你可能感兴趣的:(编译错误,openssl,error02001002,openssl.cnf)