Skip to main content Help Control Panel

Rod Morison Software —  Technotes

Home «   Linux «   Sysadmin «  

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 DER
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
Thanks for http://moze.koze.net/?p=81 for the reminder this time.

Stay tuned
recent comments
podcasted files
AddThis.com