Documentation ¶
Overview ¶
Package scertec provides a client for the TLS certs stored in setec as placed there by the scertecd service.
Think of it as a replacement for x/crypto/acme/autocert in that it provides the tls.Config.GetCertificate hook that provides the cert.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client looks up TLS certs stored in setec by scertecd as a function of a tls.ClientHelloInfo.
It does not connect to scertecd directly. (in fact, scertecd provides no cert fetching service; scertecd only updates TLS cert secrets in setec.)
func NewClient ¶
func NewClient(ctx context.Context, c setec.Client, cache setec.Cache, prefix string, domains ...string) (*Client, error)
NewClient returns a new HTTPS cert client. It blocks until all the needed secrets are available for retrieval by the Secret method, or ctx ends. The context passed to NewStore is only used for initializing the store.
func (*Client) GetCertificate ¶
func (c *Client) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate returns the RSA or ECDSA certificate for hello.ServerName.
It is the signature needed by tls.Config.GetCertificate.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
scertecd
The scertecd command updates HTTPS certs in setec using Let's Encrypt with AWS Route53 DNS challenges.
|
The scertecd command updates HTTPS certs in setec using Let's Encrypt with AWS Route53 DNS challenges. |
The scertecd package provides the code that fetches new TLS certs from LetsEncrypt as needed and puts them in setec before they expire.
|
The scertecd package provides the code that fetches new TLS certs from LetsEncrypt as needed and puts them in setec before they expire. |