Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AcmeUser ¶
type AcmeUser struct { Email string Registration *registration.Resource // contains filtered or unexported fields }
Implements registration.User
func (*AcmeUser) GetPrivateKey ¶
func (u *AcmeUser) GetPrivateKey() crypto.PrivateKey
func (AcmeUser) GetRegistration ¶
func (u AcmeUser) GetRegistration() *registration.Resource
type CertFetcher ¶
type CertFetcher struct { AcmeDiscoveryURL string AcmeUser AcmeUser CertSignRequest *x509.CertificateRequest // contains filtered or unexported fields }
func New ¶
func New(email string, eabKid string, eabHmac string, certSignRequest *x509.CertificateRequest, privateKey crypto.PrivateKey, acmeDiscoURL string, httpChallengePort int, httpChallengeWebRoot string, tlsChallengePort int, dnsProvider string, shouldRegister bool) (*CertFetcher, error)
Initializes the cert fetcher with information it needs to fetch new certificates in the future. TODO(banaag): per gregable@ comments: Callsite could have some structure like:
fetcher := CertFetcher() fetcher.setUser(email, privateKey) fetcher.bindToPort(port)
func (*CertFetcher) FetchNewCert ¶
func (f *CertFetcher) FetchNewCert() ([]*x509.Certificate, error)
Click to show internal directories.
Click to hide internal directories.