使用openssl创建pkcs12格式的密钥存档
发表于 : 2023年 5月 11日 20:15
1. 将申请的ssl证书的公钥与私钥合并为pem文件
2. 使用openssl导出为pkcs12密钥档
名词解析:
https://medium.com/knoldus/how-to-creat ... b0288f2a75
代码: 全选
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