Permit peers to provide a cert chain (multiple certs). fixes #103

This commit is contained in:
Josh Souza 2018-11-30 16:34:29 -07:00
parent 1aae7b222f
commit bb5278fe9b

View File

@ -72,7 +72,7 @@ func (l *ClientAuthListener) Accept() (c net.Conn, clientCN string, err error) {
}
peerCerts = tlsConn.ConnectionState().PeerCertificates
if len(peerCerts) != 1 {
if len(peerCerts) < 1 {
err = errors.New("unexpected number of certificates presented by TLS client")
goto CloseAndErr
}