Open pjrobertson opened 3 days ago
Thanks for reporting! I will publish a new version shortly that restricts the PyOpenSSL dependency version range so that only versions that contain the required functionality are installed.
The certificate validation (verification) function is indeed deprecated in PyOpenSSL. Migrating it to Cryptography is possible but requires some effort (I have successfully completed this work in another package I maintain, SignXML, but not in tsp-client yet) and the validation criteria in Cryptography are much stricter and less flexible than in PyOpenSSL, so I'm not sure yet if they will work with all TSP applications.
OK, I have released tsp-client v0.2.1 which works around this issue. I will post another update here when I've made progress on migrating certificate validation to Cryptography.
Great, thanks for the quick update! Note that I've tested and confirms it still works with pyopenssl==24.2.1
, so perhaps the package should be kept to this?
"pyOpenSSL >= 21.0.0, < 24.2.1"
See https://github.com/bellingcat/auto-archiver/issues/155 for more info.
Here's the stack trace, when using pyOpenSSL==24.3.0
From pyOpenSSL docs, the
crypto
package is deprecated: https://www.pyopenssl.org/en/24.3.0/api/crypto.htmlBut I can't seem to see any better solution as to how to do this. The recommended
pyca/cryptography
doesn't seem to make it any easier either. Submitting here to keep a record on this