使用openssl创建pkcs12格式的密钥存档

分享讨论IT相关的内容
回复
头像
BobMaster
锋芒初露
锋芒初露
帖子: 1186
注册时间: 2020年 12月 7日 08:05
来自: 神秘的东方
我的状态: 🎯
为圈友点赞: 338 次
被赞次数: 177 次
联系:

使用openssl创建pkcs12格式的密钥存档

帖子 BobMaster »

1. 将申请的ssl证书的公钥与私钥合并为pem文件

代码: 全选

cat server.key > server.pem
cat server.crt >> server.pem
2. 使用openssl导出为pkcs12密钥档

代码: 全选

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
人生如音乐,欢乐且自由
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客