convert ssl cert to .pem

Posted on 2014-01-28
Last Modified: 2014-02-16
How do I convert a certificate from .crt  that I recieved from a certificate authority?  Or is it better to have the vendor do this?
Question by:Jack_son_
LVL 15

Assisted Solution

pateljitu earned 100 total points
ID: 39815953
LVL 33

Assisted Solution

by:Dave Howe
Dave Howe earned 300 total points
ID: 39816029
it may already be in PEM format - open it in a text editor, if it starts with
then its a PEM :)

if not, its easy to get it to be one in windows. just double-click it, and on the resulting certificate popup, select "details" and "copy to file" - you want "Base-64 encoded x.509" which is PEM format :)

Author Comment

ID: 39816066
great, it does say ----BEGIN CERTIFICATE----

so this is pem?        can i just rename the file extension?
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

LVL 33

Assisted Solution

by:Dave Howe
Dave Howe earned 300 total points
ID: 39816103
yep, that is PEM. You can rename it if that makes you feel better :)

I take it you want it for apache or something? in which case, you don't even need to rename it, apache won't care :)

Author Comment

ID: 39816138
ok - thanks

Assisted Solution

cristiantm earned 100 total points
ID: 39817341
Since it is already answered, just a complement:

Extensions are just something to give for a software a *hint* about what is inside. Windows accepts .crt and .cer as extensions for Certificates, no matter how they are encoded in the file. Mosf software will accept a file even if the extension is not "correct", if what it expects is correclty encoded inside.

Certificates may be PEM or DER encoded. DER is ASN.1 binary encoding. PEM is base 64 encoding with headers and footers (the ----BEGIN CERTIFICATE), therefore with printable chars that can be better exchanged in some protocols (or by mail, for example).
LVL 33

Accepted Solution

Dave Howe earned 300 total points
ID: 39817615
Yup. But almost always, anything that *requires* a PEM file is either on linux or ported from linux - and linux/unix rarely uses file extensions, that's mostly a DOS/Windows thing... although oddly, apache itself often does to recognise which scripting engine to call for which serverside script :)

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now