Score:0

How to convert .cer and .key file to .pem?

do flag

I have a .cer certificate, .key file and I would like to convert it to the .pem format.

How do I convert them to .pem?

ec flag
That really depends on the types of the files you have. Both .cer and .key may be in PEM format already. Just open the files in your text editor of choice. If it is text with stuff like "--- BEGIN CERTIFCATE ---", then it is already PEM format. If it isn't, you'll need to find out what format you have. You can use the "file" utility, that should tell you what kind of file you're dealing with.
ec flag
Also, see https://serverfault.com/questions/254627/how-do-i-convert-a-cer-certificate-to-pem
Score:0
co flag
ZEE

Assuming you have the .key PK,
and .cer/.crt/.cert file in the correct format
(i think common-name is mandatory)

// in Linux

cat x.key x.cert > x.pem

// in Windows

copy /b x.key+x.cert x.pem
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.