Re: Accessing RSA private key

Heikki Toivonen <[email protected]> Mon, 9 Jun 2008 23:10:36 -0700
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
Mads Kiilerich wrote:
> I would like to be able to get the private key of an RSA key. A
> milestone could be to be able to implement "openssl rsa -text -in
> a-key.pem -noout" in python. (Existing C implementation can be found in
> openssl-0.9.8g/crypto/asn1/t_pkey.c : RSA_print)
[...]
> If not: Is it intentional or just a coincidence that SWIG/_rsa.i
> apparently doesn't implement any getters for the private parts?

AFAIK you are the first person requesting this. Want to work up a patch?
In any case, please file a bug at
https://bugzilla.osafoundation.org/enter_bug.cgi?product=M2Crypto

-- 
  Heikki Toivonen
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIThrfb8x8KoP+JuwRAqHxAJ9y/LzLv0nRwQd4cZXPFuvN7JAGoQCgkYLv
KlENTX415SU1QlJhD/DFw1k=
=FeqD
-----END PGP SIGNATURE-----