[Botan-devel] OpenSSH keys with Botan

Steven Van Ingelgem steven at vaningelgem.be
Fri Nov 20 10:42:31 EST 2009

This will certainly be VERY helpfull!

Thanks a lot!

2009/11/20 Jack Lloyd <lloyd at randombit.net>

> 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.
> -Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20091120/42542ce3/attachment.html>

More information about the botan-devel mailing list