我正在尝试使用openssl将多个证书加载到PKCS12格式中.命令如下:
openssl pkcs12 -export -in cert1.arm -inkey cert1_private_key.pem -certfile cert2.arm -certfile cert3.arm -certfile RootCert.pem -name "Test" -out test.p12
Run Code Online (Sandbox Code Playgroud)
解析生成的PKCS12文件后,只有最后一个证书已包含在文件中:
openssl pkcs12 -in test.p12 -info -nodes
Run Code Online (Sandbox Code Playgroud)
我还尝试将它们单独导入到pkcs12文件中,而在所有尝试中,只有最后一个证书保留在文件中.
有什么想法解决它的问题?