cert

package
v0.107.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL