Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)
}
The https manager which provides the certificate.
func NewLetsencryptManager ¶
Register the email to letsencrypt, cache the certs in cacheFile, set allow hosts. @remark set hosts to empty string when allow all request hosts, but maybe attack. @remark set email to nil to not regiester, use empty email to request cert from letsencrypt. @remark set cacheFile to empty string to not cache the info and certs. @remark we only use tls validate, https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#tls-with-server-name-indication-tls-sni
so the https port must be 443, we cannot serve at other ports.
func NewSelfSignManager ¶
Directories ¶
Path | Synopsis |
---|---|
fork from https://github.com/rsc/letsencrypt/tree/master/vendor/github.com/xenolf/lego/acme fork from https://github.com/xenolf/lego/tree/master/acme Package acme implements the ACME protocol for Let's Encrypt and other conforming providers.
|
fork from https://github.com/rsc/letsencrypt/tree/master/vendor/github.com/xenolf/lego/acme fork from https://github.com/xenolf/lego/tree/master/acme Package acme implements the ACME protocol for Let's Encrypt and other conforming providers. |
from gopkg.in/square/go-jose.v1 from gopkg.in/square/go-jose.v1 Package jose aims to provide an implementation of the Javascript Object Signing and Encryption set of standards.
|
from gopkg.in/square/go-jose.v1 from gopkg.in/square/go-jose.v1 Package jose aims to provide an implementation of the Javascript Object Signing and Encryption set of standards. |
cipher
from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher
|
from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher from gopkg.in/square/go-jose.v1/cipher |
json
from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json
|
from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json from gopkg.in/square/go-jose.v1/json |
Package letsencrypt obtains TLS certificates from LetsEncrypt.org.
|
Package letsencrypt obtains TLS certificates from LetsEncrypt.org. |
net
|
|
context
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
|
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes. |
time
|
|
rate
Package rate provides a rate limiter.
|
Package rate provides a rate limiter. |
Click to show internal directories.
Click to hide internal directories.