Getting error while converting p12 to pem: [('PKC12 routines', '', 'mac verify failure')] Code:
from OpenSSL import crypto
with open("C:\ECP\AUTH_RSA256_e64wwb32232e964314332121373cdf38wda2b13.p12", "rb") as file:
p12 = crypto.load_pkcs12(file.read(), "password")
with open("certificate.pem", "wb") as fobj:
fobj.write(crypto.dump_certificate(crypto.FILETYPE_PEM, p12.get_certificate()))
What's the problem?