Bump cryptography from 3.4.7 to 39.0.1, see dependabot ticket reingart#103
But, there are failures in the unit tests:
AttributeError: 'builtins.Certificate' object has no attribute '_x509'
The problem seems to be in wsaa.py line 144:
p7 = _lib.PKCS7_sign(cert._x509, private_key._evp_pkey, _ffi.NULL, bio_in, 0)
The new version of cryptography seems to have changed the signature methods: documentation:
p7 = pkcs7.PKCS7SignatureBuilder().set_data(
b"data to sign"
).add_signer(
cert, key, hashes.SHA256()
).sign(
serialization.Encoding.SMIME, options
)