4

openssl证书格式转换(pfx)

 1 year ago
source link: https://www.cnblogs.com/TianFang/p/17091384.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

openssl证书格式转换(pfx) - 天方 - 博客园

相濡以沫,不如相忘于江湖

在.net中使用时,pfx格式用得更多,但但let's encrypt下发的格式是cer的,转换方式如下:

# cer 转 pfxopenssl pkcs12 -export -out fullchain.pfx -inkey private.key -in fullchain.cer # p7b 转 crtopenssl pkcs7 -print_certs -in fullchain.p7b -out fullchain.crt # 分解命令:pkcs12 # OpenSSL中PKCS#12文件的文件实用程序-export -out fullchain.pfx # 导出并保存-inkey private.key # 使用私钥文件作为与证书结合的私钥-in fullchain.cer # fullchain.cer作为将与私钥组合的证书-certfile more.cer # 可选,如果要在PFX文件中包含任何其他证书 # helphttps://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/

参考地址: https://www.netnr.com/gist/code/5655561838775774270


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK