code: func extractCertificate(logger logrus.FieldLogger, cert *x509.Certificate) string {
  	b := pem.Block{Type: "CERTIFICATE", Bytes: cert.Raw}
  	certPEM := pem.EncodeToMemory(&b)
  	if certPEM == nil {
  		logger.Error("Cannot extract the certificate content")
  		return ""
  	}
  	return sanitize(certPEM)
  }
docs: // extractCertificate extract the certificate from the request.