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 --cert-default option #43

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Add --cert-default option #43

merged 2 commits into from
Sep 24, 2024

Conversation

blind-oracle
Copy link
Collaborator

When the incoming connection has no SNI (e.g. directly to an IP) we currently just serve the first certificate (lexicographically-wise in the BTreeMap). Sometimes it's not desirable since we serve some random custom certificate.

This adds --cert-default option that allows to specify which certificate to serve in this case. If not found or not specified -> falls back to the old behaviour.

Also updates minor deps.

@blind-oracle blind-oracle requested a review from a team as a code owner September 24, 2024 09:40
@blind-oracle blind-oracle merged commit 6cb2b75 into main Sep 24, 2024
3 checks passed
@blind-oracle blind-oracle deleted the igornovg/default-cert branch September 24, 2024 11:06
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

Successfully merging this pull request may close these issues.

2 participants