[pycrypto] Exporting/importing RSA publickeys

Legrandin gooksankoo at hoiptorrow.mailexpire.com
Sun Apr 18 13:52:51 CST 2010


In addition to the approach Lorenz described, a few months ago I published
a couple of patches to import and export RSA keys in DER or unencrypted
PEM format (https://bugs.launchpad.net/pycrypto/+bug/500820). That's
slightly more generic and standard compliant.

> i'm just wondering is there a way to import AND export the public keys
> from RSA so i can, send the public key over a socket, import it on the
> otherside so i can create a "secure" socket ( i know authentication is
> not done in this process ). 
> the socket is still subject to a MIM attack, but this is not the point
> at the moment 
> 
> it could be my inability to read the documentation but i found no way to
> dump the key, and import it again. 


More information about the pycrypto mailing list