p12Cracker icon indicating copy to clipboard operation
p12Cracker copied to clipboard

DeprecationWarning: PKCS#12 support in pyOpenSSL is deprecated. You should use the APIs in cryptography.

Open RabiTahir opened this issue 2 years ago • 0 comments

#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

RabiTahir avatar Feb 05 '23 10:02 RabiTahir