Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCACerts ¶
EncodeCACerts encodes a slice of CACerts as a concatenated PEM bundle. It is the inverse of ParseCACerts. Returns nil for an empty slice so callers can treat nil as "no certificates configured".
Types ¶
type CACert ¶
type CACert struct {
Fingerprint string
Issuer string
Subject string
NotBefore time.Time
NotAfter time.Time
Base64EncodedData string
}
func Add ¶
Add returns existing with any certs from toAdd whose fingerprint is not already present appended. Existing order and entries are preserved.
func ParseCACerts ¶
Click to show internal directories.
Click to hide internal directories.