Don't require TLS client certificate

This commit is contained in:
Neil Alexander 2023-10-15 23:06:10 +01:00
parent e110dd46fd
commit 74ca02edfd
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -8,7 +8,7 @@ import (
func (c *Core) generateTLSConfig(cert *tls.Certificate) (*tls.Config, error) { func (c *Core) generateTLSConfig(cert *tls.Certificate) (*tls.Config, error) {
config := &tls.Config{ config := &tls.Config{
Certificates: []tls.Certificate{*cert}, Certificates: []tls.Certificate{*cert},
ClientAuth: tls.RequireAnyClientCert, ClientAuth: tls.NoClientCert,
GetClientCertificate: func(cri *tls.CertificateRequestInfo) (*tls.Certificate, error) { GetClientCertificate: func(cri *tls.CertificateRequestInfo) (*tls.Certificate, error) {
return cert, nil return cert, nil
}, },