views:

989

answers:

3

Is there an inbuilt C# mechanism 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).

+1  A: 

A PEM file is an X.509 certificate in Base64 format.

A PPK file is an SSH RSA key.

You can't convert between the two because they're actually different authentication methods.

Use Putty-CAC, which supports X.509 certificate authentication.

Borealid
PEM is the format of wrapping some block of data. It's used to armor PGP keys as well as keep SSH private keys.
Eugene Mayevski 'EldoS Corp
+2  A: 

Use PuTTYGen

Instructions are here

Ryan Kinal
A: 

If you don't find a solution, take an evaluation version of our SecureBlackbox product and perform conversion using it's classes ( you can do this with evaluation version).

Eugene Mayevski 'EldoS Corp