之前1.1版本的时候运行下面命令是没问题的,升级到3.0之后就异常
openssl pkcs12 -in Cert.pfx -nodes -out Pkcs12Cert.pem
异常信息:Error outputting keys and certificates
40C7195AC47F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:386:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
在后面追加一个 -legacy(使用旧的格式或者算法)
openssl pkcs12 -in Cert.pfx -nodes -out Pkcs12Cert.pem -legacy
记录一下