-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix finding proper provided certificate when ACME is enabled #5873
Conversation
To ease review, It is a one-line change. Note: this targets v1.7, I am not sure if the bug exists in v2 or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Fixes domain to certificate matching when ACME is enabled and non-acme certificates are provided via configuration.
Currently the domain to certificate matching algorithm here fails and the default certificate is served. The result is that if two or more non-ACME certificates are provided, only the first one is used.
HTTPS requests to domains not covered by the default certificate fail.
More
Additional Notes
I am not aware of the project's architecture, or whether the place where I added the call to
BuildNameToCertificate
is the best place for it.