我是通过xx.pfx 生产ca.crt 和server.key 文件的 ,启动时报如下错误,是生产的文件错误,重新生成就可以了
对应生成密钥文件server.key 和CA的签名证书ca.crt 的命令如下:
openssl pkcs12 -in 18824306xmstc__VIP.pfx -nocerts -nodes -out server.key
openssl pkcs12 -in 18824306xmstc__VIP.pfx -clcerts -nokeys -out ca.crt
报错如下:
[Wed Sep 07 16:23:46 2011] [error] Init: Private key not found
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218710117 error:0D094065:aa
sn1 encoding routines:d2i_ASN1_SET:bad class
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218529960 error:0D0680A8:aa
sn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218595386 error:0D07803A:aa
sn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218734605 error:0D09A00D:aa
sn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Wed Sep 07 16:24:50 2011] [error] Init: Private key not found
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218710117 error:0D094065:aa
sn1 encoding routines:d2i_ASN1_SET:bad class
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218529960 error:0D0680A8:aa
sn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218595386 error:0D07803A:aa
sn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218734605 error:0D09A00D:aa
sn1 encoding routines:d2i_PrivateKey:ASN1 lib
对应生成密钥文件server.key 和CA的签名证书ca.crt 的命令如下:
openssl pkcs12 -in 18824306xmstc__VIP.pfx -nocerts -nodes -out server.key
openssl pkcs12 -in 18824306xmstc__VIP.pfx -clcerts -nokeys -out ca.crt
报错如下:
[Wed Sep 07 16:23:46 2011] [error] Init: Private key not found
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218710117 error:0D094065:aa
sn1 encoding routines:d2i_ASN1_SET:bad class
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218529960 error:0D0680A8:aa
sn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218595386 error:0D07803A:aa
sn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Wed Sep 07 16:23:46 2011] [error] SSL Library Error: 218734605 error:0D09A00D:aa
sn1 encoding routines:d2i_PrivateKey:ASN1 lib
[Wed Sep 07 16:24:50 2011] [error] Init: Private key not found
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218710117 error:0D094065:aa
sn1 encoding routines:d2i_ASN1_SET:bad class
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218529960 error:0D0680A8:aa
sn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218595386 error:0D07803A:aa
sn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Wed Sep 07 16:24:50 2011] [error] SSL Library Error: 218734605 error:0D09A00D:aa
sn1 encoding routines:d2i_PrivateKey:ASN1 lib