Convert a .crt Certificate to a .pem file
Every year or so I update CA'd certs and usually forget that my mailserver (cyrus+postfix) needs a PEM format file. Then, I have to fish around for the openssl commands that do the job.
openssl x509 -in morison.org.crt -out morison.org.der -outform DERThanks for http://moze.koze.net/?p=81 for the reminder this time.
openssl x509 -in morison.org.der -inform DER -out morison.org.pem -outform PEM
sudo cp ./morison.org.pem /etc/ssl/certs/
sudo /etc/init.d/cyrus2.2 restart
sudo /etc/init.d/postfix restart
Related links
| Mozekoze » Converting SSL-certificates from CRT format to PEM - (12 clicks) Posted by Rod, on Apr. 22 2009 |


