代码: 全选
cat server.key > server.pem
cat server.crt >> server.pem
代码: 全选
openssl pkcs12 -export -in server.pem -out server.pkcs12
A PKCS12(Public-Key Cryptography Standards) defines an archive-file format for storing server certificates, intermediate certificate if any and private key into a single encryptable file.
参考链接:A .pem(Privacy Enhanced Mail) file is a container format that may just include the public certificate or the entire certificate chain (private key, public key, root certificates).
https://medium.com/knoldus/how-to-creat ... b0288f2a75