Documentation
¶
Overview ¶
Package certprovider contains the bundled certificate providers for shttp
Index ¶
- func LetsEncrypt(domain string, certDir string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
- func Manual(certFile string, keyFile string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
- func SelfSign(organization string, host string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LetsEncrypt ¶
func LetsEncrypt(domain string, certDir string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
LetsEncrypt is a certificate provider using ACME and the LetsEncrypt service certDir is a directory used for caching certificates, and must be accessible/ writeable to the server's user/group.
func Manual ¶
func Manual(certFile string, keyFile string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
Manual is the certificate provider you would choose if you already have your own .pem .crt or .key files
func SelfSign ¶
func SelfSign(organization string, host string) (func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error), error)
SelfSign will generate a self-signed certificat for the server. organization is the self-selected organization to sign as. host is a comma-separated list of domains/hosts to sign for. Will default to "127.0.0.1,::1,example.com"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.