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

far0921kmk
far0921kmk used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Engineer
Distinguished Expert 2017
Commented:
This is how certificate looks like in notepad
Is your certificate looks the same ? Has same format ?

If not then you must ask them to send you cer or crt file not a text file.

Capture.JPG

Author

Commented:
Thank you for your comment.
Yes it is exactly what I have from the agency.
Tom CieslikIT Engineer
Distinguished Expert 2017

Commented:
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.
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

AntzsInfrastructure Services

Commented:
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
https://support.citrix.com/article/CTX136444

Author

Commented:
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 CieslikIT Engineer
Distinguished Expert 2017

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial