grumble: remove accidental peer certificate debugging.

This commit is contained in:
Mikkel Krautz 2013-02-09 21:56:09 +01:00
parent f287fedb33
commit e72c8852d2

View file

@ -260,13 +260,11 @@ func (server *Server) handleIncomingClient(conn net.Conn) (err error) {
}
state := tlsconn.ConnectionState()
log.Printf("peerCerts = %#v", state.PeerCertificates)
if len(state.PeerCertificates) > 0 {
hash := sha1.New()
hash.Write(state.PeerCertificates[0].Raw)
sum := hash.Sum(nil)
client.certHash = hex.EncodeToString(sum)
log.Printf("%v", client.CertHash())
}
// Check whether the client's cert hash is banned