Add binding for SSL_CTX_set1_sigalgs_list

Open
#848 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
security

Research direction

Locate the OpenSSL.Context bindings and existing SSL_CTX_* wrappers, then compare how SSL_CTX_set1_sigalgs_list is exposed by cryptography and pyOpenSSL. Done means OpenSSL.Context provides this function so callers can select RSA or ECDSA signature algorithms for TLS 1.3 certificate checks.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
944
Forks
440
Avg merge
1d 6h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pyca/pyopenssl

All issues in pyca/pyopenssl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.