Convert .pem to .ppk File

.ppk to .pem file

PuTTY plays a significant role in secured transfer and connectivity from the localhost to a remote system. The native file format is .ppk files. In the application, the private key must be in the native format, if you are using PuTTY.

Cloud computing platform is a core part of EC2 and generates the PEM file format, before connecting to Linux user convert the file into .ppk file format.

What is .pem File Format?

In 1993 IETC defines “privacy-enhanced mail” known as.PEM file format. It contains multiple instances. Suffix like “.pem”, a “.cer” or a “.crt” or a”.key” are used to store Pem data in files. Cryptographic keys, certificates, and other data are stored and sent by the extension .PEM file format.

Three elements defined by PEM format:

  1. A one-line header, consisting of “—–BEGIN”, a label, and “—–“.
  2. Base64 encoded binary data.
  3. A one-line footer, consisting of “—–END”, a label, and “—–“.

.PEM file format is safe for ASCII and rich-text documents’, such as emails.

Example of a certificate stored:

pem certificate

Multiple Messages

Multiple messages may be contained by the PEM file; it can be used to combine the certificate or to provide the certificate chain and the private key in a single file.

What is .PPK file format?

The private keys generated by the program are stored in the .PPK files. The Private Key file is developed by PuTTY. The key file authentication is stored in .PPK files make it serves as a computer maker.

The steps for authentication .PPK files are as follows:

  1. Choose the connection.
  2. SSH → Auth (Putty Configuration Menu).
  3. Click → Browse → Enable Option “Private Key File”.

Note: .PPK files can be open for Windows, Linux and MAC OS.

How to convert PEM to PPK file? (Window)

Steps are as follows:

1. Start menu → All Programs → PuTTY → PuTTYkey

PuTTY Key Generator

2. Select option → RSA

RSA is used to transmit data securely and known as a public-key cryptosystem. Select the option SSH-2 RSA for the old version of PuTTY.

3. Click → Load

It only shows the .ppk files extension, as Putty supports native file format.

User must follow the sub-step:

  • Dropdown bar → All files

Display All key files included the .pem file.

4. Select → .pem file

It is crucial for the user to select the specific file, as mentioned earlier that Putty is used for SSH connectivity.

  • Click → Open
  • To confirm, click → Ok

5. Click → ‘Save private key’ 

6. Putty prompt warning for saving the key without a Passphrase. Hit “Yes” on it.

7. Putty will automatically add the .ppk file extension when the name is given to a file.

Note: Users can connect their local machine with remote servers when the file is converted to a PuTTY compatible format.

How to convert PPK file to PEM in MacOS?

First of all you need to install Homebrew to convert .ppk to .pem file in MacOS. After that you need to follow below steps:

  1. First, install the PuTTY. 
    brew install putty
  2. Second, Convert Putty Key to Open SSH.
    puttygen puttykey.ppk -O private-openssh -o privatekey.pem

How to convert PPK file to PEM file? (Linux)

First, install the Putty application on the Unix machines. Then run the PuTTYgen command and type the below command.

$ sudo puttygen pemKey.pem -o ppkKey.ppk -O private


Please enter your comment!
Please enter your name here