openssl pkcs12 -in "xxx.com.p12" -out "xxx.com.pem"
错误提示
Error outputting keys and certificates
004C5CFF01000000:error:14000065:UI routines:UI_set_result_ex:result too small:crypto/ui/ui_lib.c:875:You must type in 4 to 1023 characters
004C5CFF01000000:error:1400006B:UI routines:UI_process:processing error:crypto/ui/ui_lib.c:528:while reading strings
004C5CFF01000000:error:0480006D:PEM routines:PEM_def_callback:problems getting password:crypto/pem/pem_lib.c:62:
004C5CFF01000000:error:07880109:common libcrypto routines:do_ui_passphrase:interrupted or cancelled:crypto/passphrase.c:178:
004C5CFF01000000:error:1C80009F:Provider routines:p8info_to_encp8:unable to get passphrase:providers/implementations/encode_decode/encode_key2any.c:116:
加-nodes解决问题
openssl pkcs12 -nodes -in "xxx.com.p12" -out "xxx.com.pem"