Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoValidPEMCertificatesFound = errors.New("no valid PEM certificates found")
Functions ¶
func ParseCerts ¶
func ParseCerts(cert string) ([]*x509.Certificate, error)
ParseCerts parses a PEM-encoded certificate chain formatted as concatenated strings and returns a slice of x509.Certificate. In case of unparsable certificates, the function returns an empty slice. Returns an error when a cert cannot be parsed, or when no certificates are recognized in the input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.