-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Issue summary
Using recent versions of cryptography leads to errors like
Traceback (most recent call last): File "/Users/Gonzague/GitHub/codetowallet/AppleWalletServer/main.py", line 223, in generate_pass pkpass_data = apple_pass.create( File "/Users/Gonzague/GitHub/codetowallet/AppleWalletServer/venv/lib/python3.9/site-packages/applepassgenerator/models.py", line 323, in create signature = self._create_signature_crypto( File "/Users/Gonzague/GitHub/codetowallet/AppleWalletServer/venv/lib/python3.9/site-packages/applepassgenerator/models.py", line 372, in _create_signature_crypto pkcs7.PKCS7SignatureBuilder() File "/Users/Gonzague/GitHub/codetowallet/AppleWalletServer/venv/lib/python3.9/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py", line 100, in add_signer raise TypeError( TypeError: hash_algorithm must be one of hashes.SHA224, SHA256, SHA384, or SHA512
Expected behaviour
This should work
Actual behaviour
Crashes with an error
Steps to reproduce the problem
Install this package / library without a specific "cryptography==37.0.2" requirement
Checklist
- I have searched the issues of this repo and believe that this is not a duplicate.