Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthority ¶
func Load ¶
func Load(caPath string) (*CertificateAuthority, error)
Load takes a given path to what is presumed to be a valid certificate authority and attempts to load both the certificate and private key. If the path is a directory then it is assumed that there are two files "ca.crt" and "ca.key" which represent the certificate and private key respectively.
If the argument is not a directory, it must be a file ending in either of the .crt or .key extensions. Load will read the given file and attempt to load the other associated file. For example, if the path given is /path/to/my-ca.crt, then load will attempt to load the private key file at /path/to/my-ca.key.
Click to show internal directories.
Click to hide internal directories.