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 a TLSConfig option #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

k-anshul
Copy link

This PR adds a TLSConfig options apart from existing Certificates.
Clients can set GetCertificate inside tls.Config which enables zero downtime certificate rotation

Comment on lines +159 to +167
var tlsConfig *tls.Config
if srv.TLSConfig != nil {
tlsConfig = srv.TLSConfig
} else {
tlsConfig = &tls.Config{
Certificates: srv.Certificates,
ClientAuth: srv.ClientAuth,
ClientCAs: srv.ClientCAs,
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of simply passing a tls.Config. I am ok to introduce a breaking change and simply pass the tls.Config type directly.

@jeroenrinzema jeroenrinzema added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants