[Botan-devel] OpenSSH keys with Botan
lloyd at randombit.net
Fri Nov 20 10:40:24 EST 2009
On Fri, Nov 20, 2009 at 01:46:14PM +0100, Steven Van Ingelgem wrote:
> What could possibly the reason? And/or how can I use public keys from
> OpenSSH with botan?
The SSH public key format (RFC 4716) is, for better or worse,
completely different from X.509's subjectPublicKeyInfo, and is not
supported natively by botan.
I've attached a program that converts SSH2 public keys to X.509
keys. Tested with RSA and DSA keys created by OpenSSH. The
internal interface is
Public_Key* read_ssh_pubkey(const std::string& file)
so you should be able to simply copy and paste the code into your
application. Or use the prog as is as a preprocessing step to turn the
SSH keys into something botan natively understands.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2380 bytes
Desc: not available
More information about the botan-devel