From hans at VELUM.NET Thu Jun 11 12:12:31 2009 From: hans at VELUM.NET (Hans Lellelid) Date: Thu, 11 Jun 2009 06:12:31 -0400 Subject: [PYTHON-CRYPTO] pkcs8 support in M2Crypto? Message-ID: <870c63e7f1cbb4a35ebc9cb262ceb075@mail.mxes.net> Hi - I was wondering if there was any plans to add pkcs8 support to the M2Crypto libraries. -- or perhaps there is something there that I haven't found? This could certainly be [another] case of me just not understanding how the PKCS8 formulation relates to the input data, but what I'm trying to replicate is turning a standard RSA openssl key into PKCS8 format. On the commandline I do something like this: openssl pkcs8 -topk8 -nocrypt -in key.pem -inform PEM -out key.der -outform PEM (Actually, I do -outform DER, but this is not the challenging part.) Thanks in advance! Hans From info at EGENIX.COM Thu Jun 11 11:12:14 2009 From: info at EGENIX.COM (eGenix Team: M.-A. Lemburg) Date: Thu, 11 Jun 2009 11:12:14 +0200 Subject: [PYTHON-CRYPTO] ANN: eGenix pyOpenSSL Distribution 0.9.0-0.9.8k Message-ID: <4A30CA6E.7020401@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.9.0-0.9.8k An easy to install and use repackaged distribution of the pyOpenSSL Python interface for OpenSSL - available on Windows, Mac OS X 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.9.0-0.9.8k-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/) that allows writing SSL aware networking applications as well as certificate management tools. OpenSSL is an open-source implementation of the SSL protocol (http://www.openssl.org/). For more information, please see the product page: http://www.egenix.com/products/python/pyOpenSSL/ ________________________________________________________________________ NEWS This new release of the eGenix.com pyOpenSSL Distribution updates the included pyOpenSSL version to 0.9, which includes a new fix for a serious problem in pyOpenSSL 0.8 related to threaded applications. It also comes with an important bug-fix update of OpenSSL, now at version 0.9.8k. The problem causes invalid thread states in the Python interpreter which then result in random core dumps and seg faults when using pyOpenSSL 0.8.0 with multi-threaded applications. The new fix is slightly different than the one we included in 0.8.1 and based on a code analysis we did together with Jean-Paul Calderone to track down the cause of the problem. Binaries are available for Linux x86 and x64 as well as Windows x86 and Mac OS X PPC/Intel. They include both pyOpenSSL and the necessary OpenSSL libraries. For Plone users and friends of buildout scripts, we have added pre-built binaries for Windows. They install just like the Linux versions and allow easy integration of the archives into buildout scripts. For our Mac OS X users, we have included new pre-built binaries for Mac OS X PPC and Intel 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 11 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2009-06-29: EuroPython 2009, Birmingham, UK 17 days to go ::: Try our new mxODBC.Connect Python Database Interface 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 http://www.egenix.com/company/contact/ From boober95 at ROGERS.COM Thu Jun 25 15:29:34 2009 From: boober95 at ROGERS.COM (Bill) Date: Thu, 25 Jun 2009 09:29:34 -0400 Subject: [PYTHON-CRYPTO] Problems compiling M2Crypto on 64 bit Linux ... Message-ID: <200906250929.34769.boober95@rogers.com> I'm using m2crypto for pyXMPP. I need to build from source against a specific version of openSLL but but I am having trouble compiling on a 64 bit system. I am not having any problem on 32 bit systems, only on the 64 bit versions. The system I am using is Ubuntu 9.04 AMD64, and I am building against the latest version of M2Crypto and openSSL, here is the error I am getting: gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/SWIG/_m2crypto_wrap.o -L/usr/local/ssl/lib -lssl -lcrypto -o build/lib.linux-x86_64-2.6/M2Crypto/__m2crypto.so /usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(rc4-x86_64.o): relocation R_X86_64_PC32 against symbol `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 The -fPIC is a red herring as I made sure to build openSSL with that option. The interesting thing is Ubuntu 9.04 AMD64 has m2crypto in its repositories, so it must be possible to build a 64 bit. Any ideas or suggestions for what to do would be welcome. Bill From boober95 at ROGERS.COM Thu Jun 25 15:41:28 2009 From: boober95 at ROGERS.COM (Bill) Date: Thu, 25 Jun 2009 09:41:28 -0400 Subject: [PYTHON-CRYPTO] Problems running M2Crypto tests ... Message-ID: <200906250941.28654.boober95@rogers.com> I am attempting to run the M2Crypto tests with limited success. The command 'python setup.py tests' doesn't work, and so I have being doing 'python tests/alltests.py' to run the supplied test suite. I have been running this in 32 mode on various boxes and in virtual machines. These run just fine. But when I move the code over to a 32 bit OS hosted in a Xen VM the tests fail. The output starts with a couple of '....' in the output, but then starts errors with 'EEEEE'. If I am not quick to kill it at that point it eventually exhausts ram and the VM crashes! I can't see any reason why everything would work anywhere except in a Xen VM, does anyone have any ideas or has anyone seen this behaviour before? Bill