Hi Roshan, It appears you're using the pyOpenSSL API so you'll probably get more help on the pyopenssl-users mailing list (https://mail.python.org/mailman/listinfo/pyopenssl-users).
-Paul Kehrer (reaperhulk) On October 7, 2015 at 6:31:34 PM, Roshan Cherian (cherian.r...@gmail.com) wrote: Hi Team, I have a requirement to convert from p12 to p7. I am sorry for my little knowledge on this. 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 _______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev