mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-03 00:25:37 +02:00
Permit peers to provide a cert chain (multiple certs). fixes #103
This commit is contained in:
parent
1aae7b222f
commit
bb5278fe9b
@ -72,7 +72,7 @@ func (l *ClientAuthListener) Accept() (c net.Conn, clientCN string, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
peerCerts = tlsConn.ConnectionState().PeerCertificates
|
peerCerts = tlsConn.ConnectionState().PeerCertificates
|
||||||
if len(peerCerts) != 1 {
|
if len(peerCerts) < 1 {
|
||||||
err = errors.New("unexpected number of certificates presented by TLS client")
|
err = errors.New("unexpected number of certificates presented by TLS client")
|
||||||
goto CloseAndErr
|
goto CloseAndErr
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user