How to Convert CER to DER

58 篇文章 0 订阅
28 篇文章 0 订阅

refs:

http://www.ehow.com/how_8747870_convert-cer-der.html

https://www.sslshopper.com/ssl-converter.html


https 证书,给的是cer格式,ios中用的der格式

SSL, or Secure Sockets Layer, is security technology that encrypts information traveling from a website to web server, keeping it private and secure. SSL technology is used by millions of different websites that need to protect confidential information for their customers. But when making changes to a website or server, you may also need to change the format of the SSL certificate. For example, a windows server may use DER, PFX or P7B formats while an Apache server will use PEM, CRT or CER.



Read more : http://www.ehow.com/how_8747870_convert-cer-der.html

Way1

SSL, or Secure Sockets Layer, is security technology that encrypts information traveling from a website to web server, keeping it private and secure. SSL technology is used by millions of different websites that need to protect confidential information for their customers. But when making changes to a website or server, you may also need to change the format of the SSL certificate. For example, a windows server may use DER, PFX or P7B formats while an Apache server will use PEM, CRT or CER.

Instructions
    ◦    1 Open a web browser and visit a website like SSL Converter or Globe SSL (see Resources).
    ◦    2 Click the "Browse" button and locate the CER file you want to convert.
    ◦    3 Select the down arrow drop down menu next to "Type of Current Certificate" and choose CER as the file type.
    ◦    4 Click the drop down menu next to "Type to Convert to" and select DER file. Click "Convert Certificate."

    ◦    5 Save the newly converted file to the website folder.


Way2

1. Export the Self Signed Certificate from ConsoleOne.
a. Open CA object in O=Security
b. Select Certificates -> Self Signed Certificate
c. Do not export the private key.
d. Export the file in DER format; name it c:\RootCert.der

2. Convert .der format to .cer
a. On a Windows workstation double click the c:\RootCert.der and IE will prompt to import the certificate.
b. Go to the details tab and press copy to file.
c. Follow the wizard until you get prompted to select the format. Select DER endoded binary X.509 (.CER)
d. Put the file name in (example c:\newcert) and finish. The file will be named c:\newcert.cer


Way3:best way

OpenSSL Convert PEM

Convert PEM to DER

openssl x509 -outform der -in certificate.pem -out certificate.der

Convert PEM to P7B

openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer

Convert PEM to PFX

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

OpenSSL Convert DER

Convert DER to PEM

openssl x509 -inform der -in certificate.cer -out certificate.pem

OpenSSL Convert P7B

Convert P7B to PEM

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

Convert 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

OpenSSL Convert PFX

Convert PFX to PEM

openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值