Re: M2crypto

2012-02-13 Thread zigi
Ok, thanks. On 13 Lut, 23:27, geremy condra wrote: > On Mon, Feb 13, 2012 at 12:37 AM, zigi wrote: > > Hello, > > this is must be testing time to crypt files, using just M2crypto :-) > > I know this is a strange use of the library, but such is the will of > > the management. > > I take it you m

Re: M2crypto

2012-02-13 Thread geremy condra
On Mon, Feb 13, 2012 at 12:37 AM, zigi wrote: > Hello, > this is must be testing time to crypt files, using just M2crypto :-) > I know this is a strange use of the library, but such is the will of > the management. I take it you mean that you're benchmarking file encryption performance using M2Cr

Re: M2crypto

2012-02-13 Thread zigi
Hello, this is must be testing time to crypt files, using just M2crypto :-) I know this is a strange use of the library, but such is the will of the management. On 13 Lut, 01:28, geremy condra wrote: > On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson wrote: > > zigi wrote: > > >> Hello, > >> M2cry

Re: M2crypto

2012-02-12 Thread geremy condra
On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson wrote: > zigi wrote: > >> Hello, >> M2crypto >> >> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', >> salt='12345678', i=1, padding=1) >> >> I wont write app, using M2crypto and I can not understand what are the >> arguments: >> key, iv, op, sa

Re: M2crypto

2012-02-12 Thread Mel Wilson
zigi wrote: > Hello, > M2crypto > > __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', > salt='12345678', i=1, padding=1) > > I wont write app, using M2crypto and I can not understand what are the > arguments: > key, iv, op, salt ? > What they do ? I assume you're reading in

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-17 Thread Adam Mercer
On Sat, Jul 17, 2010 at 15:20, Heikki Toivonen wrote: > I was actually planning on doing a release by the end of June, but life > happened. Maybe by the end of August... Know what whats like :-) I've backported the OpenSSL patches for the MacPorts port so for the time being this particular fire

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-17 Thread Heikki Toivonen
On 07/16/2010 08:18 AM, Adam Mercer wrote: That version of M2Crypto does not work with OpenSSL 1.0.x because OpenSSL changed APIs. M2Crypto trunk works, as will the next M2Crypto release. So at this time, you should check out M2Crypto from the Subversion repository. See http://chandlerproject.org

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-16 Thread Adam Mercer
On Fri, Jul 16, 2010 at 02:09, Heikki Toivonen wrote: > That version of M2Crypto does not work with OpenSSL 1.0.x because OpenSSL > changed APIs. M2Crypto trunk works, as will the next M2Crypto release. So at > this time, you should check out M2Crypto from the Subversion repository. See > http://

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-16 Thread Heikki Toivonen
On 07/13/2010 02:18 PM, Adam Mercer wrote: I'm trying to build M2Crypto on Mac OS X 10.6.4 against python2.5 (python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a and it is failing with the following: That version of M2Crypto does not work with OpenSSL 1.0.x because OpenSSL cha

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread geremy condra
On Thu, Jul 15, 2010 at 3:03 PM, Adam Mercer wrote: > On Thu, Jul 15, 2010 at 14:10, John Nagle wrote: >>   I had a similar problem back in 2007.  See >> >> http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems >> >> Also see >> >> http://bytes.com/topic/python/answers/711381-

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread Adam Mercer
On Thu, Jul 15, 2010 at 14:10, John Nagle wrote: >   I had a similar problem back in 2007.  See > > http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems > > Also see > > http://bytes.com/topic/python/answers/711381-m2crypto-0-18-new-version-same-old-build-bugs > >   There have

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-15 Thread John Nagle
I had a similar problem back in 2007. See http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems Also see http://bytes.com/topic/python/answers/711381-m2crypto-0-18-new-version-same-old-build-bugs There have been problems with SWIG. There have been problems with how O

Re: M2Crypto-0.20.2, SWIG-2.0.0, and OpenSSL-1.0.0a build problem

2010-07-14 Thread Adam Mercer
Anyone have any ideas about this? Cheers Adam On Tue, Jul 13, 2010 at 16:18, Adam Mercer wrote: > Hi > > I'm trying to build M2Crypto on Mac OS X 10.6.4 against python2.5 > (python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a > and it is failing with the following: > > 105    

Re: M2Crypto 0.20.1 won't build on Red Hat Linux

2009-10-02 Thread John Nagle
Heikki Toivonen wrote: John Nagle wrote: The right question is "uname --hardware-platform". That returns "i386" if running on something emulating a 386, even it it's 64-bit capable. Thanks, I'll make a note that I'll need to clarify that part. With that change, the build runs to completion

Re: M2Crypto 0.20.1 won't build on Red Hat Linux

2009-10-01 Thread Heikki Toivonen
John Nagle wrote: > The right question is "uname --hardware-platform". That returns "i386" if > running on something emulating a 386, even it it's 64-bit capable. Thanks, I'll make a note that I'll need to clarify that part. > With that change, the build runs to completion and and the regression

Re: M2Crypto 0.20.1 won't build on Red Hat Linux

2009-10-01 Thread John Nagle
Heikki Toivonen wrote: John Nagle wrote: M2Crypto, from http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.20.1.tar.gz won't build on Red Hat Linux / 386. The error is It's some incompatibility between Red Hat include file packaging and M2Crypto. Yup, all Fedora Core-based system

Re: M2Crypto 0.20.1 won't build on Red Hat Linux

2009-10-01 Thread Heikki Toivonen
John Nagle wrote: > M2Crypto, from > > http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.20.1.tar.gz > > won't build on Red Hat Linux / 386. The error is > > It's some incompatibility between Red Hat include file packaging and > M2Crypto. Yup, all Fedora Core-based systems actually.

Re: M2Crypto: How to generate subjectKeyIdentifier / authorityKeyIdentifier

2009-08-10 Thread Matthias Güntert
Hello once again Now I have the extension-patch [0] applied to the M2Crypto SVN branch (revision 704). Creating a root and an subRoot CA certificate now works great including the SKID/AKID extensions. I am also able to verify those created certificates using: $ openssl verify -CAfile rootCA.crt

Re: M2Crypto: How to generate subjectKeyIdentifier / authorityKeyIdentifier

2009-08-10 Thread Matthias Güntert
Now I have this patch applied to the M2Crypto SVN branch -- http://mail.python.org/mailman/listinfo/python-list

Re: M2Crypto: How to generate subjectKeyIdentifier / authorityKeyIdentifier

2009-08-07 Thread Scott David Daniels
Matthias Güntert wrote: M2Crypto has a couple of bugs open related that, with potential workarounds that I haven't yet deemed polished enough to checkin, but which might help you out: https://bugzilla.osafoundation.org/show_bug.cgi?id=7530 https://bugzilla.osafoundation.org/show_bug.cgi?id=12151

Re: M2Crypto: How to generate subjectKeyIdentifier / authorityKeyIdentifier

2009-08-05 Thread Matthias Güntert
> M2Crypto has a couple of bugs open related that, with potential > workarounds that I haven't yet deemed polished enough to checkin, but > which might help you out: > > https://bugzilla.osafoundation.org/show_bug.cgi?id=7530 > https://bugzilla.osafoundation.org/show_bug.cgi?id=12151 Thanks, that

Re: M2Crypto: How to generate subjectKeyIdentifier / authorityKeyIdentifier

2009-08-04 Thread Heikki Toivonen
Matthias Güntert wrote: > I am trying to add the extensions "subjectKeyIdentifier" and > "authorityKeyIdentifier" to a x509v3 certificate. M2Crypto has a couple of bugs open related that, with potential workarounds that I haven't yet deemed polished enough to checkin, but which might help you out

Re: M2Crypto: X509.X509_Extension_Stack() throws AssertionError

2009-08-04 Thread Matthias Güntert
> > cert_extension_2 = X509.new_extension("keyUsage", "10100") > > Maybe your OpenSSL is too old. keyUsage needs to be defined in OpenSSL > obj_dat.h file for this to work. I am using OpenSSL version 0.9.8k-fips which is the latest version. I replaced: cert_extension_2 = X509.new_ext

Re: M2Crypto: X509.X509_Extension_Stack() throws AssertionError

2009-08-03 Thread Heikki Toivonen
Matthias Güntert wrote: > Why is the following code snippet throwing an AssertionError? Is that > behavior a bug within X509.X509_Extension_Stack()? How would you suggest > popping every element from the stack? > > cert_extension_2 = X509.new_extension("keyUsage", "10100") Maybe your

Re: M2Crypto: AttributeError: 'CSR' object has no attribute 'pkey'

2009-08-01 Thread Heikki Toivonen
Matthias Güntert wrote: > class CSR(object): > def __init__(self): > pass > > def create_cert_signing_request(keypair, cert_name, > cert_extension_stack=None): You missed self. Although this method does not seem to be using any instance data so there isn't actually much reason to

Re: M2Crypto hangs on this URL

2009-07-28 Thread Heikki Toivonen
John Nagle wrote: > There's something strange about this URL: > > "https://sagar310.pontins.com/sraep/"; The following program finishes fine for me using M2Crypto 0.20beta1 + openssl 0.9.8g. Like Martin mentioned in another message, maybe someone fixed the site. from M2Crypto import SSL ctx = SS

Re: M2Crypto hangs on this URL

2009-07-28 Thread Martin P. Hellwig
John Nagle wrote: Martin P. Hellwig wrote: John Nagle wrote: John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; ... It looks to me like the SSL handshake is not done properly from the server side. Compare the output of: op

Re: M2Crypto hangs on this URL

2009-07-28 Thread John Nagle
Martin P. Hellwig wrote: John Nagle wrote: John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; ... It looks to me like the SSL handshake is not done properly from the server side. Compare the output of: openssl s_client -hos

Re: M2Crypto hangs on this URL

2009-07-27 Thread Martin P. Hellwig
John Nagle wrote: John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; It hangs Firefox 2; there's no short timeout, the web page just gets stuck in initial load for about ten minutes. Then "The connection to sagar310.pontins.co

Re: M2Crypto hangs on this URL

2009-07-27 Thread John Nagle
John Nagle wrote: John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; It hangs Firefox 2; there's no short timeout, the web page just gets stuck in initial load for about ten minutes. Then "The connection to sagar310.pontins.com was interrupted w

Re: M2Crypto hangs on this URL

2009-07-27 Thread John Nagle
John Nagle wrote: There's something strange about this URL: "https://sagar310.pontins.com/sraep/"; It hangs Firefox 2; there's no short timeout, the web page just gets stuck in initial load for about ten minutes. Then "The connection to sagar310.pontins.com was interrupted while the page was

Re: m2crypto loading cert file from memory buffer

2008-12-05 Thread Heikki Toivonen
netpork wrote: > ctx = SSL.Context('sslv3') > ctx.load_cert_chain('client.pem') > > anyone knows a way of loading cert file from memory buffer and not > from a file? Yeah, see for example how I did it for Chandler: http://svn.osafoundation.org/chandler/trunk/chandler/parcels/osaf/framework/certst

Re: M2Crypto possible intermittent bug

2007-10-11 Thread John Nagle
John Nagle wrote: > Heikki Toivonen wrote: >> John Nagle wrote: >>> Still having trouble reproducing the problem. But somewhere, >>> something raised that bogus no-error exception three times. >>> Anything that returns "(0, 'Error')" as exception data is a bug. >> >> If you can, build python an

Re: M2Crypto possible intermittent bug

2007-10-10 Thread John Nagle
Heikki Toivonen wrote: > John Nagle wrote: >> Still having trouble reproducing the problem. But somewhere, >> something raised that bogus no-error exception three times. >> Anything that returns "(0, 'Error')" as exception data is a bug. > > If you can, build python and m2crypto with debug sym

Re: M2Crypto possible intermittent bug

2007-10-10 Thread Heikki Toivonen
John Nagle wrote: > Still having trouble reproducing the problem. But somewhere, > something raised that bogus no-error exception three times. > Anything that returns "(0, 'Error')" as exception data is a bug. If you can, build python and m2crypto with debug symbols, and place breakpoints in |

Re: M2Crypto possible intermittent bug

2007-10-10 Thread John Nagle
John Nagle wrote: > John Nagle wrote: >> I just "upgraded" from M2Crypto 0.17 to M2Crypto 0.18, and I'm >> running my regression tests. I'm seeing occasional cases where >> M2Crypto raises the exception SSL.SSLError, and the associated >> error is "(0, 'Error')", which is the bogus error you get

Re: M2Crypto possible intermittent bug

2007-10-10 Thread John Nagle
John Nagle wrote: > I just "upgraded" from M2Crypto 0.17 to M2Crypto 0.18, and I'm > running my regression tests. I'm seeing occasional cases where > M2Crypto raises the exception SSL.SSLError, and the associated > error is "(0, 'Error')", which is the bogus error you get if you feed 0 to > "per

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-10-03 Thread John Nagle
John Nagle wrote: > Heikki Toivonen wrote: >That's progress, but the build still doesn't work: ... > during a C compile, we get > > SWIG/_m2crypto_wrap.c:2529:18: error: _lib.h: No such file or directory > > and the build goes downhill from there, with many compile errors in the > GCC phase.

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-25 Thread John Nagle
Heikki Toivonen wrote: > John Nagle wrote: > >>But notice that the -D entry didn't appear on the SWIG command line. >>Neither did the "-includeall". The "swig_opts" values around line >>129 aren't actually being used. I think that's left over from the code >>intended >>to allow builds with Pytho

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-24 Thread Heikki Toivonen
John Nagle wrote: > But notice that the -D entry didn't appear on the SWIG command line. > Neither did the "-includeall". The "swig_opts" values around line > 129 aren't actually being used. I think that's left over from the code > intended > to allow builds with Python 2.3 and earlier. The "sel

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-24 Thread John Nagle
Heikki Toivonen wrote: > John Nagle wrote: > >>Back in March, I posted this: >> >> >>>Hit that with OpenSSL. Red Hat took elliptical curve cryptography >>>out of Fedora 6 for patent reasons. With that missing, M2Crypto won't >>>build. It ought to; the implementor of M2Crypto thought of that

Re: M2Crypto 0.18 - new version, same old build bugs.

2007-09-21 Thread Heikki Toivonen
John Nagle wrote: > Back in March, I posted this: > >> Hit that with OpenSSL. Red Hat took elliptical curve cryptography >> out of Fedora 6 for patent reasons. With that missing, M2Crypto won't >> build. It ought to; the implementor of M2Crypto thought of that, because >> it's an optional f

Re: M2Crypto 0.18 - new version, same old build bugs.

2007-09-20 Thread John Nagle
Paul Boddie wrote: > On 20 Sep, 22:12, John Nagle <[EMAIL PROTECTED]> wrote: > >>That was for M2Crypto 0.17. >> >>It's still broken in M2Crypto 0.18. >> >>And there's no RPM or Windows binary. >> >>Nobody actually uses this stuff, do they? > > > I can find Ubuntu packages for 0.1

Re: M2Crypto 0.18 - new version, same old build bugs.

2007-09-20 Thread Paul Boddie
On 20 Sep, 22:12, John Nagle <[EMAIL PROTECTED]> wrote: > > That was for M2Crypto 0.17. > > It's still broken in M2Crypto 0.18. > > And there's no RPM or Windows binary. > > Nobody actually uses this stuff, do they? I can find Ubuntu packages for 0.16 and 0.17: http://packages.ubu

Re: M2Crypto-0.17 blocks python threads?

2007-06-03 Thread John Nagle
Heikki Toivonen wrote: > [EMAIL PROTECTED] wrote: > >>I am having a problem with python threads and M2Crypto. It appears >>the M2Crypto used in multi-thread application blocks other threads >>from running: > > > This turned into https://bugzilla.osafoundation.org/show_bug.cgi?id=9401 > > Thank

Re: M2Crypto-0.17 blocks python threads?

2007-06-01 Thread Heikki Toivonen
[EMAIL PROTECTED] wrote: > I am having a problem with python threads and M2Crypto. It appears > the M2Crypto used in multi-thread application blocks other threads > from running: This turned into https://bugzilla.osafoundation.org/show_bug.cgi?id=9401 Thanks for the report! -- Heikki Toivone

Re: M2Crypto SSL memory leaks - fixes or alternatives ??

2005-05-10 Thread Roger Binns
> I notice that M2Crypto (a python wrap of OpenSSL) leaks (haemorrhages) > memory significantly and affects my long running app very badly. > > Does anyone know of fixes to this problem? > > Does anyone recommmend alternatives to M2C ? e.g pyopenssl. If you control both ends of the connection then

Re: M2Crypto for 2.4

2004-12-02 Thread elbertlev
//I will do it in the next day or two. Me too! Remember, this is a programmer and a manager telling you his plan. :) But, if I do not, nobody in my department will :( -- http://mail.python.org/mailman/listinfo/python-list

Re: M2Crypto for 2.4

2004-12-01 Thread Ng Pheng Siong
According to Elbert Lev <[EMAIL PROTECTED]>: > Have somebody build M2Crypto for 2.4 on windows? If yes, please tell > if there are any problems. I will do it in the next day or two. (Remember, this is a programmer telling you his plan. ;-) Did you try doing it? Did you encounter a problem? Chee