We help IT Professionals succeed at work.

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

far0921kmk
far0921kmk asked
on
13,563 Views
Last Modified: 2018-02-22
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

IT Superintendent
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thank you for your comment.
Yes it is exactly what I have from the agency.
Tom CieslikIT Superintendent
CERTIFIED EXPERT
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.
AntzsInfrastructure Services
CERTIFIED EXPERT

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 Superintendent
CERTIFIED EXPERT
Distinguished Expert 2017

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