We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In CPython 3.10 there were private APIs SSLObject.get_verified_chain() and _ssl.Certificate.public_bytes(_ssl.ENCODING_DER) methods added.
SSLObject.get_verified_chain()
_ssl.Certificate.public_bytes(_ssl.ENCODING_DER)
Ref: python/cpython#25467
import hashlib import _ssl fingerprints = [hashlib.sha256(cert.public_bytes(_ssl.ENCODING_DER)).hexdigest() for cert in sock._sslobj.get_verified_chain()]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
In CPython 3.10 there were private APIs
SSLObject.get_verified_chain()
and_ssl.Certificate.public_bytes(_ssl.ENCODING_DER)
methods added.Ref: python/cpython#25467
The text was updated successfully, but these errors were encountered: