Link to home
Start Free TrialLog in
Avatar of far0921kmk
far0921kmkFlag for Japan

asked on

How to convert SSL certificate text to .pem/.cer/.crt

Dear Experts,

I have a SSL certificate that I purchased from an authorized agency. I had it in a simple text format being copied in an email from the agency.
Now I need to upload this to a Barracuda appliance.
I simply tried copying it onto a txt file, and saved it with .cer extension. Its icon now looks like a certificate but when I as a test try to double click on it, I get "this is not a valid certificate" message. And of course when I tried to upload that looking-like-certificate file onto the appliance, I get an error.

My question is whether there is any right way of converting it into a valid one?
Avatar of Tom Cieslik
Tom Cieslik
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of far0921kmk


Thank you for your comment.
Yes it is exactly what I have from the agency.
So if does, just save as cer file but make sure after End Certificate----- there is no space or enter
Your certificate should be ready to install.
Once the agency have provided you with the cert in text format.  You should actually install this cert into the server which the CSR was issues from.  Once you have done that, export the cert from your server together with the private key.  

Once you have exported, you would probably get a certificate with the .pfx extension.  Next download Openssl and use it to convert the .pfx to .pem before uploading it to the appliance.

Look towards the bottom, OpenSSL Utility section
Thank you so much Tom. I was able to have time to sit down and learn this through last night. The files are now recognized as valid certificates.
Nice to hear. I'm glad you've sorted this out.