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

本文详细介绍了如何将HTTPS证书从CER格式转换为DER格式的步骤,包括使用在线工具和命令行工具OpenSSL的方法。

6101

被折叠的 条评论
为什么被折叠?



