code: func certToPEM(certificate *x509.Certificate) string {
  	cert, err := certFromX509Cert(certificate)
  	if err != nil {
  		mspIdentityLogger.Warning("Failed converting certificate to asn1", err)
  		return ""
  	}
  	return cert.String()
  }
docs: // certToPEM converts the given x509.Certificate to a PEM
  // encoded string