Documentation ¶
Overview ¶
Package cert provides functionality for creating self-signed and signed certificates.
Index ¶
Constants ¶
View Source
const ( // CertCreateSelfsigned represents the operation of creating a self-signed certificate. CertCreateSelfsigned = "create_cert" // CertCreateSigned represents the operation of creating a signed certificate. CertCreateSigned = "create_signed_cert" // StoreCert represents the operation of storing a certificate. StoreCert = "store_cert" // StoreKey represents the operation of storing a key. StoreKey = "store_key" // GetCert represents the operation of retrieving a certificate. GetCert = "get_cert" // GetKey represents the operation of retrieving a key. GetKey = "get_key" )
Constants for certificate creation operations.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndSign ¶
GenerateAndSign generates a new certificate for the given fully qualified domain name (fqdn) and email, and returns a TLS configuration and an HTTP handler. The function uses the autocert package to automatically access certificates from Let's Encrypt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.