Skip to content
New issue

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

Add support for public key pinning #2438

Open
sethmlarson opened this issue Sep 30, 2021 · 0 comments
Open

Add support for public key pinning #2438

sethmlarson opened this issue Sep 30, 2021 · 0 comments

Comments

@sethmlarson
Copy link
Member

sethmlarson commented Sep 30, 2021

In Python 3.10 there were private APIs SSLObject.get_verified_chain() and _ssl.Certificate.public_bytes(_ssl.ENCODING_DER) methods added. In theory this means we can support pinning any certificate within the chain instead of only the peercert. This is great news as pinning only the peercert wasn't as useful as it doesn't allow for certificate rotation or for multiple leaf certificates to be verified by a single fingerprint.

Ref: python/cpython#25467

cc @tiran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant