[pypy-dev] p12 to p7b
Roshan Cherian
cherian.rosh at gmail.com
Thu Oct 8 18:53:14 CEST 2015
Hi Team,
I have a requirement to convert from p12 to p7b. I am sorry for my little
knowledge on this and I am not even sure I can ask this here. I am doing
the following:
p12 = load_pkcs12(file(self._pkcs12Path, 'rb').read())
pem = dump_certificate(FILETYPE_PEM, p12.get_certificate())
p7 = load_pkcs7_data(FILETYPE_PEM, pem)
However I am getting an error:
Error: [('asn1 encoding routines', 'ASN1_CHECK_TLEN', 'wrong tag'), ('asn1
encoding routines', 'ASN1_D2I_EX_PRIMITIVE', 'nested asn1 error'), ('asn1
encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('PEM
routines', 'PEM_ASN1_read_bio', 'ASN1 lib')]
I am pretty sure I am doing something wrong, could you help?
Thanks,
-Roshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20151008/147cfd45/attachment.html>
More information about the pypy-dev
mailing list