Archived
1
0

log tls error

This commit is contained in:
Jeff Becker 2020-03-07 09:05:21 -05:00
parent ff8c3e915a
commit 77fe66c330
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -42,6 +42,7 @@ func HandleStartTLS(conn net.Conn, config *tls.Config) (econn *textproto.Conn, s
econn = textproto.NewConn(tconn) econn = textproto.NewConn(tconn)
return return
} else { } else {
log.Println("tls handshake error: ", err.Error())
certs := state.PeerCertificates certs := state.PeerCertificates
if len(certs) == 0 { if len(certs) == 0 {
log.Println("starttls failed, no peer certs provided") log.Println("starttls failed, no peer certs provided")