views:

347

answers:

1

Hi, I tried installing M2Crypto and facing problems. I don't want to force my customers to use such libraries which are difficult to install. So, I thought I would give pyOpenSSL a try. I am able to get the public key from pem certificate but am not able to find any way to verify the signature.

A: 

You simply can't do this with pyOpenSSL. It is a very limited wrapper around openssl library. But I have a guess what's wrong with building M2Crypto on your host. Try running:

export SWIG_FEATURES=-I/usr/include/openssl

before trying to install M2Crypto.

abbot
Thanks Mr Abbot. I tried this, but did not help. But it did give me enough idea to fix the problem. I had to modify setup.py to add his path for swig and also setup the __i386__ definition. Thanks a bunch.
Bhargava