Closed MWMWM closed 2 years ago
Thanks for reporting! Would you mind creating a Pull Request for your proposed fix?
@vog Pull Request is awaiting - will you be able to take a look?
@MWMWM Thanks for the reminder and sorry for the delay!
The pull request is fine and I just released a new version 1.14 of requests_pkcs12
:
I get
TypeError: Encryption algorithm must be a KeySerializationEncryption instance
when invokingcreate_ssl_sslcontext
functionAfter changing https://github.com/m-click/requests_pkcs12/blob/master/requests_pkcs12.py#L69 to
cryptography.hazmat.primitives.serialization.BestAvailableEncryption(password=pkcs12_password_bytes)
everything is working fine