func CertificateToPemString(headers map[string]string,
	cert *x509.Certificate, chain ...*x509.Certificate) (string, error) {
	builder := strings.Builder{}
	if err := CertificateToPemWriter(&builder, headers, cert, chain...); err != nil {
		return "", errors.Trace(err)
	}
	return builder.String(), nil
}
// CertificateToPemString transforms an x509 certificate to a pem string
CertificateToPemString transforms an x509 certificate to a pem string
// CertificateToPemString transforms an x509 certificate to a pem string
func CertificateToPemString(headers map[string]string,
	cert *x509.Certificate, chain ...*x509.Certificate) (string, error) {
	builder := strings.Builder{}
	if err := CertificateToPemWriter(&builder, headers, cert, chain...); err != nil {
		return "", errors.Trace(err)
	}
	return builder.String(), nil
}
func CertificateToPemString ( headers map [ string ] string , cert * x509 . Certificate , chain ... * x509 . Certificate ) ( string , error ) { builder := strings . Builder { } if err := CertificateToPemWriter ( & builder , headers , cert , chain ... ) ; err != nil { return " " , errors . Trace ( err ) } return builder . String ( ) , nil }
CertificateToPemString transforms an x509 certificate to a pem string
CertificateToPemString transforms an x509 certificate to a pem string