Questions tagged [pem]

PEM, (from Privacy Enhanced Mail standard) is a base64 container format for encoding keys and certificates.

PEM (Privacy Enhanced Mail standard) is a base64 container format that encodes keys and certificates surrounded by header lines, and is used extensively by . It is defined in RFC standards 1421-1424

1003 questions
781
votes
12 answers

How to get .pem file from .key and .crt files?

How can I create a PEM file from an SSL certificate? These are the files that I have available: .crt server.csr server.key
Sergio Rodriguez
  • 8,258
  • 3
  • 18
  • 25
494
votes
15 answers

scp (secure copy) to ec2 instance without password

I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem. However, when I want to copy a file to the instance using scp I am asked to enter a…
Hoff
  • 38,776
  • 17
  • 74
  • 99
317
votes
2 answers

How to convert .crt to .pem

How can I convert .crt to .pem?
Ali
  • 10,774
  • 10
  • 56
  • 83
307
votes
8 answers

Generate .pem file used to set up Apple Push Notifications

I tried and tried to generate a .pem file, every time generating certificates from the client's account and then generating the .pem file using the terminal, but it's of no use. Can anyone give a step-by-step procedure?
Harsh Parikh
  • 3,845
  • 3
  • 14
  • 14
273
votes
3 answers

How to view the contents of a .pem certificate?

I am using Java keytool. I have exported a self-signed .pem certificate from my keystore. Is there a command to view the certificate details directly from the .pem file (not of the certificate in the keystore)?
Ashwin
  • 12,691
  • 31
  • 118
  • 190
257
votes
2 answers

Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN PRIVATE KEY"

Hi I was writing a program that imports private keys from a .pem file and create a private key object to use it later.. the problem I have faced is that some pem files header begin with -----BEGIN PRIVATE KEY----- while others begin…
monim
  • 3,427
  • 3
  • 23
  • 36
194
votes
5 answers

Converting pfx to pem using openssl

How to generate a .pem CA certificate and client certificate from a PFX file using OpenSSL.
new bie
  • 2,745
  • 6
  • 24
  • 26
189
votes
13 answers

Import PEM into Java Key Store

I am trying to connect to an SSL server which requires me to authenticate myself. In order to use SSL over Apache MINA I need a suitable JKS file. However, I have only been given a .PEM file. How would I go about creating a JKS file from a PEM…
jwoolard
  • 6,024
  • 9
  • 37
  • 37
175
votes
7 answers

Connect over SSH using a .pem file

I would like to know how to connect over SSH using a .pem file to any server. Currently I'm executing the following command: ssh user@mydomain.example What option should I use?
danielrvt
  • 10,177
  • 20
  • 80
  • 121
165
votes
11 answers

Convert PEM to PPK file format

Is there a way to convert PEM files to PPK files? (you may guess that Amazon EC2 gives me a PEM file, and I need to use the PPK format for SSH connectivity).
LoneRanger
  • 1,909
  • 2
  • 13
  • 13
109
votes
2 answers

How do I get the public key of a pem file?

I have a .pem file containing my private key. However, a BitBucket deployment key has this format: ssh-rsa…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
109
votes
3 answers

How to save public key from a certificate in .pem format

I am using the below openssl command for storing my public key into a .pem file. openssl> x509 -in E:/mycert.pem -pubkey -out E:/mypubkey.pem But when i try to use this command, it is storing the whole certificate info in the mypubkey.pem file. I…
Ankit
  • 1,330
  • 2
  • 11
  • 16
101
votes
3 answers

How to create .pem files for https web server

I'm using the Express framework in Node.js to create a web server. I want to use ssl for the web server's connection. The code to create the https web server is as below. var app = express.createServer({ key: fs.readFileSync('./conf/key.pem'), …
Jeffrey
  • 4,436
  • 9
  • 38
  • 54
96
votes
11 answers

How to read .pem file to get private and public key

I am writing a small piece of code which reads public and private key stored in .pem file. I am using the following commands to generate the keys. Below command to generate pair of key. $openssl genrsa -out mykey.pem 2048 This command to…
Rakesh
  • 3,987
  • 10
  • 43
  • 68
85
votes
2 answers

where do I keep my amazon .pem file on a mac

Where should I keep this file for security? At the moment it is on my desktop - should I put it somewhere else?
leblaireau
  • 1,133
  • 4
  • 10
  • 13
1
2 3
66 67