[PYTHON-CRYPTO] Verifying a certificate using M2Crypto

Kershaw, PJ (Philip) P.J.Kershaw at RL.AC.UK
Fri Apr 13 10:23:22 CEST 2007


Thanks - that worked:

assert cert.verify(cacert.get_pubkey())

> -----Original Message-----
> From: generic crypto class API for Python 
> [mailto:PYTHON-CRYPTO at NIC.SURFNET.NL] On Behalf Of Heikki Toivonen
> Sent: 12 April 2007 17:51
> To: PYTHON-CRYPTO at NIC.SURFNET.NL
> Subject: Re: Verifying a certificate using M2Crypto
> 
> 
> Philip Kershaw wrote:
> > I'd like to know how to verify an X.509 certificate against it's CA 
> > cert
> > with M2Crypto.  Is there an equivalent call to the command line:
> 
> I think you are looking for M2Crypto.X509.X509.verify. See 
> tests.test_x509 for some usage samples.
> 
> -- 
>   Heikki Toivonen
> 
> 



More information about the python-crypto mailing list