Converting a public PEM-file to OpenSSH public file format

Peter Stuge peter at stuge.se
Wed May 9 01:18:24 EST 2012


Lars Nordin wrote:
> I have made a new option i ssh-keygen, to read a public key in PEM-format 
> and write a public key in openSSH-format. This file can be used to make the 
> authorized_keys file.
>
> I needed this function because I made an openssh-client where the private 
> key in a smartcard and therefore not available for ssh-keygen to make the 
> public file..

You made an openssh-client? Hm. There is already PKCS#11 support on
the client side, and possibly ssh-keygen can already read the public
key from a card that way, and output OpenSSH format. Did you try
this approach?


> I can make a patch for this if anyone is interested!

I'm interested at least. Let's see it!


//Peter


More information about the openssh-unix-dev mailing list