Lars Nordin
2012-May-08 07:10 UTC
Converting a public PEM-file to OpenSSH public file format
Hi, 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.. I can make a patch for this if anyone is interested! /Lars
Peter Stuge
2012-May-08 15:18 UTC
Converting a public PEM-file to OpenSSH public file format
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