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 binding for SSL_CTX_set1_sigalgs_list #848

Open
Jean-Daniel opened this issue Jul 3, 2019 · 3 comments
Open

Add binding for SSL_CTX_set1_sigalgs_list #848

Jean-Daniel opened this issue Jul 3, 2019 · 3 comments

Comments

@Jean-Daniel
Copy link

Jean-Daniel commented Jul 3, 2019

OpenSSL.Context should expose a function to let client set signature algorithms (using SSL_CTX_set1_sigalgs_list which is already exposed by cryptography and available in pyOpenSSL).

This is required to force the server certificate choice (to RSA or ECDSA) when using TLS 1.3 as certificate type is no longer specified in the cipher name.

While forcing the certificate type is not useful for simple connection, this is a critical feature to be able to write tools to check the server SSL configuration.

My own use case is to be able to verify that an automatic certificate deployment script properly configure both RSA and ECDSA certificate on the server. As the server returns only the preferred certificate, having a way to force it is a requirement.

@reaperhulk
Copy link
Member

SSL_CTX_set1_sigalgs_list is already bound (in cryptography, which pyOpenSSL uses), so you can submit a PR that adds a function calling it in pyOpenSSL without any additional work.

@Jean-Daniel
Copy link
Author

PR #851

@Jean-Daniel
Copy link
Author

Jean-Daniel commented Jun 15, 2022

Unfortunately, the binding was remove from cryptography…

pyca/cryptography#6473

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

No branches or pull requests

2 participants