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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to