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?
far0921kmkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom CieslikIT EngineerCommented:
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
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
far0921kmkAuthor Commented:
Thank you for your comment.
Yes it is exactly what I have from the agency.
0
Tom CieslikIT EngineerCommented:
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.
0
Redefine Your Security with AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Check out our on-demand webinar to learn more about how AI can help your organization!

AntzsInfrastructure ServicesCommented:
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
0
far0921kmkAuthor 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.
0
Tom CieslikIT EngineerCommented:
Nice to hear. I'm glad you've sorted this out.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSL / HTTPS

From novice to tech pro — start learning today.