Posted in Keys

PEM and PPK

PEM

Privacy Enhanced Mail is a file format that consists of certificate or a private key or sometimes both. It is a base64 encoded certificate that are used for web servers. The contents of these kind of files are readable using editors. It will be in this format:

-----BEGIN CERTIFICATE REQUEST-----
8n104o/5p8HAsZPdzbFMIyNjJzBM2o5y5A13wiLitEfyYkQzaxCw0Awzladsfw23
BAsME0RvY3VtZW50IERlcGFydG1lbnQxOTA3BgNVBAMMMFdoeSBhcmUgeW91IGRl
0jQxUEAkAyb/mVgm66TyghDGC6/YkiKoZptXQozakE+8p06BpxegR4BR3FMHf6p+
apQnIDm0Ea/HVzX/PiSOGuertwIDAQABMAsGCSqGSIb3DQEBBQOBgQBzMJdAV4QP
ozakE+8p06BpxegR4BR3FMHf6p+0jQxUEAkAyb/mVgm66TyghDGC6/YkiKoZptXQ
Awel8LzGx5uMOshezF/KfP67wJ93UW+N7zXY6AwPgoLj4Kjw+WtU684JL8Dtr9FX
98TwDIK/39WEB/V607As+KoYazQG8drorw==
-----END CERTIFICATE REQUEST-----

PPK

PuTTY Private Key are files created by PuTTYgen that enables secure communication with host having corresponding public key. These types of files are used for SSH or telnet connections.

Converting PEM to PPK

Often we are provided with PEM files as key to access the instance (like Amazon EC2). But for SSH connectivity, we may need PPK file.

Step 1:
Use PuTTYgen, that can be downloaded from here. Click Load button.

putty1.png

Step 2:
Select All files from the format selector drop down and pick the .pem file.

putty2.png

Step 3:
Once, the pem key is converted, you will be notified with this confirmation dialog box.

putty3.png

Step 4:
Click Save private key button to save the generated private key.

putty4.png

Step 5:
Select Yes to save the PPK file.

putty5.png

The generated file can be used to connect to the instance using SSH connection using PuTTY.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s