From mads at KIILERICH.COM Thu Jun 5 22:20:54 2008 From: mads at KIILERICH.COM (Mads Kiilerich) Date: Thu, 5 Jun 2008 22:20:54 +0200 Subject: [PYTHON-CRYPTO] Accessing RSA private key Message-ID: <48484AA6.4030005@kiilerich.com> Hi, 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) The public e and n is easily accessed on an m2crypto RSA key instance, but I can't find any way to access the private part? In m2crypto implementation I see references to rsa->e and rsa->n, but not any to for example rsa->d. Is there any way to get the private key through m2crypto? Or if I add ctypes to the soup? If not: Is it intentional or just a coincidence that SWIG/_rsa.i apparently doesn't implement any getters for the private parts? /Mads -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3435 bytes Desc: S/MIME Cryptographic Signature URL: From heikki at OSAFOUNDATION.ORG Tue Jun 10 08:10:36 2008 From: heikki at OSAFOUNDATION.ORG (Heikki Toivonen) Date: Mon, 9 Jun 2008 23:10:36 -0700 Subject: [PYTHON-CRYPTO] Accessing RSA private key In-Reply-To: <48484AA6.4030005@kiilerich.com> References: <48484AA6.4030005@kiilerich.com> Message-ID: <484E1ADC.8050305@osafoundation.org> 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: From info at EGENIX.COM Thu Jun 12 22:21:16 2008 From: info at EGENIX.COM (eGenix Team: M.-A. Lemburg) Date: Thu, 12 Jun 2008 22:21:16 +0200 Subject: [PYTHON-CRYPTO] ANN: eGenix pyOpenSSL Distribution 0.7.0-0.9.8h-1 Message-ID: <4851853C.8070701@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.7.0-0.9.8h-1 An easy to install and use repackaged distribution of the pyOpenSSL Python interface for OpenSSL - available on Windows and Unix platforms This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/eGenix-pyOpenSSL-Distribution-0.7.0-0.9.8h-1-GA.html ________________________________________________________________________ INTRODUCTION The eGenix.com pyOpenSSL Distribution includes everything you need to get started with SSL in Python. It comes with an easy to use installer that includes the most recent OpenSSL library versions in pre-compiled form. pyOpenSSL is an open-source Python add-on (http://pyopenssl.sf.net/). OpenSSL is an open-source implementation of the SSL protocol (http://www.openssl.org/). * About Python: Python is an object-oriented Open Source programming language which runs on all modern platforms (http://www.python.org/). By integrating ease-of-use, clarity in coding, enterprise application connectivity and rapid application design, Python establishes an ideal programming platform for todays IT challenges. * About eGenix: eGenix is a consulting and software product company focused on providing professional quality services and products to Python users and developers (http://www.egenix.com/). ________________________________________________________________________ NEWS This is the first release of the eGenix.com pyOpenSSL Distribution. It includes pyOpenSSL 0.7.0 and the OpenSSL 0.9.8h libraries on all supported platforms. ________________________________________________________________________ DOWNLOADS The download archives and instructions for installing the package can be found at: http://www.egenix.com/products/python/pyOpenSSL/ ________________________________________________________________________ UPGRADING Before installing this version of pyOpenSSL, please make sure that you uninstall any previously installed pyOpenSSL version. Otherwise, you could end up not using the included OpenSSL libs. _______________________________________________________________________ SUPPORT Commercial support for these packages is available from eGenix.com. Please see http://www.egenix.com/services/support/ for details about our support offerings. Enjoy, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 12 2008) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2008-07-07: EuroPython 2008, Vilnius, Lithuania 24 days to go :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611