p12Cracker
p12Cracker copied to clipboard
DeprecationWarning: PKCS#12 support in pyOpenSSL is deprecated. You should use the APIs in cryptography.
#remove from OpenSSL import crypto from cryptography.hazmat.primitives.serialization import pkcs12
and also new code to handle exception:
try:
p12 = pkcs12.load_pkcs12(open(p12FilePath, 'rb').read(), guess.encode('utf8'))
except ValueError as e:
p12 = None