Re: M2Crypto 0.18 Roadmap

Heikki Toivonen <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
Kershaw, PJ (Philip) wrote:
> This uses pyOpenSSL but I wanted to use M2Crypto.  In one case, MyProxy
> server returns a list of certificates which are parsed used in Tom's
> code using pyOpenSSL OpenSSL.crypto.load_certificate ...
> 
>         # extract der-format cert, and convert to pem
>         c = dat[ind:ind+len+4]
> =>      x509 = crypto.load_certificate(crypto.FILETYPE_ASN1,c)
>         pem_cert = crypto.dump_certificate(crypto.FILETYPE_PEM,x509)
>         pem_certs.append(pem_cert)
> 
> I couldn't see an M2Crypto equivalent so I looked into the pyOpenSSL C
> source code.  The C function used is d2i_X509_bio().  I made a wrapper
> for this in my own version of M2Crypto adapting X509.load_cert_string()

I think that this will be addressed by bug
https://bugzilla.osafoundation.org/show_bug.cgi?id=9259

-- 
  Heikki Toivonen
signature.asc (application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbZ2Zb8x8KoP+JuwRAio9AJ9kQ2BAoEx4CTpZunqfiGklcNUjwQCgiRni
DnUvkCnHoNDusCHK32sf5vM=
=IerY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.