[PYTHON-CRYPTO] Accessing RSA private key

Heikki Toivonen heikki at OSAFOUNDATION.ORG
Tue Jun 10 08:10:36 CEST 2008


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-crypto/attachments/20080609/7da91b0d/attachment.pgp>


More information about the python-crypto mailing list