Avatar of far0921kmk
Flag 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 undefined
Last Comment
Tom Cieslik

8/22/2022 - Mon
Tom Cieslik

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thank you for your comment.
Yes it is exactly what I have from the agency.
Tom Cieslik

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
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

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.
Tom Cieslik

Nice to hear. I'm glad you've sorted this out.