code: func LogTLSState(ctx context.Context, tlsState *tls.ConnectionState) {
  	if tlsState == nil {
  		log.G(ctx).Debugf("no TLS Chains found")
  		return
  	}
  
  	peerCerts := []string{}
  	verifiedChain := []string{}
  	for _, cert := range tlsState.PeerCertificates {
  		peerCerts = append(peerCerts, cert.Subject.CommonName)
  	}
  	for _, chain := range tlsState.VerifiedChains {
  		subjects := []string{}
  		for _, cert := range chain {
  			subjects = append(subjects, cert.Subject.CommonName)
  		}
  		verifiedChain = append(verifiedChain, strings.Join(subjects, ","))
  	}
  
  	log.G(ctx).WithFields(logrus.Fields{
  		"peer.peerCert": peerCerts,
  		// "peer.verifiedChain": verifiedChain},
  	}).Debugf("")
  }
docs: // LogTLSState logs information about the TLS connection and remote peers