Documentation ¶
Index ¶
- func CreateCertFetcher(config *util.Config, key crypto.PrivateKey, domain string, ...) (*certfetcher.CertFetcher, error)
- func LoadAndValidateCertsFromFile(certPath string, requireSign bool) ([]*x509.Certificate, error)
- func LoadCSRFromFile(config *util.Config) (*x509.CertificateRequest, error)
- func LoadCertsFromFile(config *util.Config, developmentMode bool) ([]*x509.Certificate, error)
- func LoadKeyFromFile(config *util.Config) (crypto.PrivateKey, error)
- func RemoveFile(filepath string) error
- func WriteCertsToFile(certs []*x509.Certificate, filepath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertFetcher ¶
func CreateCertFetcher(config *util.Config, key crypto.PrivateKey, domain string, developmentMode bool, autoRenewCert bool) (*certfetcher.CertFetcher, error)
func LoadAndValidateCertsFromFile ¶
func LoadAndValidateCertsFromFile(certPath string, requireSign bool) ([]*x509.Certificate, error)
func LoadCSRFromFile ¶
func LoadCSRFromFile(config *util.Config) (*x509.CertificateRequest, error)
func LoadCertsFromFile ¶
Loads X509 certificates from disk. Returns appropriate errors if:
The file can't be read. The certificate can't be parsed. No certificates found in the file. Certificates cannot be used to sign HTTP exchanges. (if developmentMode, print a warning that certs can't be used to sign HTTP exchanges).
If there are no errors, the array of certificates is returned.
func LoadKeyFromFile ¶
func LoadKeyFromFile(config *util.Config) (crypto.PrivateKey, error)
Loads private key from file. Returns appropriate errors if:
The file can't be read. The key can't be parsed.
If there are no errors, the key is returned.
func RemoveFile ¶
func WriteCertsToFile ¶
func WriteCertsToFile(certs []*x509.Certificate, filepath string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.