Documentation
¶
Index ¶
- func GetCertificatesFromDir(dir string) ([][]byte, error)
- func GetX509Identity(entry string) (driver.Identity, error)
- func LoadExtras(extraFiles []string) (map[string][]byte, error)
- func ReadSingleCertificateFromFile(file string) ([]byte, error)
- func SetupIssuersAndAuditors(pp PP, Auditors, Issuers []string) error
- type PP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificatesFromDir ¶
GetCertificatesFromDir returns the PEM-encoded certificates from the given directory.
func GetX509Identity ¶ added in v0.5.0
GetX509Identity returns the x509 identity from the passed entry.
func LoadExtras ¶ added in v0.7.0
LoadExtras parses strings in the format "key=file_path" and returns a map where keys are the extracted keys and values are the file contents as []byte.
func ReadSingleCertificateFromFile ¶
ReadSingleCertificateFromFile reads the passed file and checks that it contains only one certificate in the PEM format. It returns an error if the file contains more than one certificate.
func SetupIssuersAndAuditors ¶
SetupIssuersAndAuditors sets up the issuers and auditors for the given public parameters
Types ¶
Click to show internal directories.
Click to hide internal directories.