Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

convert ssl cert to .pem

Posted on 2014-01-28
7
Medium Priority
?
809 Views
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?
0
Comment
Question by:Jack_son_
7 Comments
 
LVL 15

Assisted Solution

by:pateljitu
pateljitu earned 400 total points
ID: 39815953
0
 
LVL 33

Assisted Solution

by:Dave Howe
Dave Howe earned 1200 total points
ID: 39816029
it may already be in PEM format - open it in a text editor, if it starts with
-----BEGIN CERTIFICATE-----
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 :)
0
 

Author Comment

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

so this is pem?        can i just rename the file extension?
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 33

Assisted Solution

by:Dave Howe
Dave Howe earned 1200 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 :)
0
 

Author Comment

by:Jack_son_
ID: 39816138
ok - thanks
0
 
LVL 3

Assisted Solution

by:cristiantm
cristiantm earned 400 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).
0
 
LVL 33

Accepted Solution

by:
Dave Howe earned 1200 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 :)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2

824 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