Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArrayOfCertsFromVault ¶
func GetArrayOfCertsFromVault(client *api.Client, secret *api.Secret, pkiPath string) (arrayOfCerts []*x509.Certificate, err error)
GetArrayOfCertsFromVault iterates through a given list of keys from a vault secret and returns a slice of *x509.Certificate's from the PEM data
arrayOfCerts, err := GetArrayOfCertsFromVault(client, secret, "pki")
func GetListOfCerts ¶
GetListOfCerts fetches the list of certs from a given pki backend
listOfCerts, err := GetListOfCerts(client, "pki")
func ParseCertFromVaultSecret ¶
func ParseCertFromVaultSecret(secret *api.Secret) (*x509.Certificate, error)
ParseCertFromVaultSecret parses the value from the "certificate" field in cert data from vault and returns a *x509.Certificate
cert, err := ParseCertFromVaultSecret(secret)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.