Openssl转换证书格式常用命令Openssl convert certificates formats commond
点击数:136122013-05-28 12:29:55 来源: 中国数字证书(CHINASSL)
1. 转换PEM 证书
PEM to DER
openssl x509 -outform der -in certificate.pem -out certificate.der
PEM to P7B
openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer
PEM to PFX
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
2. 转换P7B 证书
P7B to PEMopenssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
P7B to PFX
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer
3. 转换PFX 证书
PFX to PEM
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes konwersja poprze OpenSSL
4. 转换DER 证书
DER to PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem
上一页1下一页 |
原文地址:https://www.chinassl.net/faq/n327.html
版权所有@转载请注明出处:CHINASSL[https://www.chinassl.net]