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 an option to require client TLS certificates and verification #64

Closed

Conversation

johnbelamaric
Copy link
Contributor

@johnbelamaric johnbelamaric commented Jun 28, 2018

This adds an additional TLS flag -client-auth which can take on these values:

  • none - the default, do not require client certificates: tls.NoClientCert tls.ClientAuthType
  • require - require a cert but don't validate: tls.RequireAnyClientCert
  • verify - require and validate client cert: tls. RequireAndVerifyClientCert

Maybe tls.VerifyClientCertIfGiven would be better than the require one here. Or we can just allow them all.

Fixes #41

@johnbelamaric
Copy link
Contributor Author

This should be followed up with a TLSClientFlags struct in flag.go that provides a separate set of TLS options for use when acting as a client, rather than a server.

@Evgeniy-L
Copy link
Contributor

Closing as this is unlikely to be merged.

@Evgeniy-L Evgeniy-L closed this Dec 11, 2019
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.

Fix TLS client certificate based authentication
2 participants