mirror of
https://github.com/zrepl/zrepl.git
synced 2025-02-16 10:29:54 +01: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
|
||||
if len(peerCerts) != 1 {
|
||||
if len(peerCerts) < 1 {
|
||||
err = errors.New("unexpected number of certificates presented by TLS client")
|
||||
goto CloseAndErr
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user