func SignerToPemString(signer crypto.Signer) (string, error) {
	builder := strings.Builder{}
	if err := SignerToPemWriter(&builder, signer); err != nil {
		return "", errors.Trace(err)
	}
	return builder.String(), nil
}
// SignerToPemString transforms a crypto signer to PKCS8 pem string
SignerToPemString transforms a crypto signer to PKCS8 pem string
// SignerToPemString transforms a crypto signer to PKCS8 pem string
func SignerToPemString(signer crypto.Signer) (string, error) {
	builder := strings.Builder{}
	if err := SignerToPemWriter(&builder, signer); err != nil {
		return "", errors.Trace(err)
	}
	return builder.String(), nil
}
func SignerToPemString ( signer crypto . Signer ) ( string , error ) { builder := strings . Builder { } if err := SignerToPemWriter ( & builder , signer ) ; err != nil { return " " , errors . Trace ( err ) } return builder . String ( ) , nil }
SignerToPemString transforms a crypto signer to PKCS8 pem string
SignerToPemString transforms a crypto signer to PKCS8 pem string