While trying to update a certificate on a produciton enviroment I ran into the following issue, Apache only accepts certificates in PEM format, since my client provided me with his new certificate on a .cer file I had to find a way to convert it.
For x509 certificates this can be easily achieved using OpenSSL on Linux/Unix and OS X. First make sure you have OpenSSL (comes by default with OS X), open a terminal and issue the following command:
openssl x509 -inform pem -in certificate.cer -outform der -out certificate.pem
Where certificate.cer is the source certificate file you want to convert and certificate.pem is the name of the converted certificate.
Useful info. Fortunate me I found your website unintentionally, and I am stunned why this coincidence did not came about in advance! I bookmarked it.
The inform and outform options are reversed. The command should be:
openssl x509 -inform der -in certificate.cer -outform pem -out certificate.pem
Your command works great
What’s up to every single one, it’s in fact a pleasant for
me to pay a visit this site, it contains important Information.
Stop by my website Advertising vehicle
Gratzie, your command helped me a lot !!!
it worked on aix 5.3 with no errors.
Eduardo
You can definitely see your expertise in the work you write.
The sector hopes for even more passionate writers like you who are
not afraid to mention how they believe. All the time follow
your heart.
hngsedhodgsohnjhbdshndsx
qwretyghjksdfvbnm
asdf