Versions in this module Expand all Collapse all v0 v0.9.5 Jan 24, 2017 Changes in this version + const DefaultHTTPAlternatePort + const HTTPChallengePort + const NumTickets + const OCSPInterval + const RenewDurationBefore + const RenewInterval + const TLSSNIChallengePort + const TicketRotateInterval + var Agreed bool + var DefaultCAUrl string + var DefaultEmail string + var DefaultKeyType = acme.RSA2048 + func DeleteOldStapleFiles() + func HTTPChallengeHandler(w http.ResponseWriter, r *http.Request, listenHost, altPort string) bool + func HostQualifies(hostname string) bool + func MakeTLSConfig(configs []*Config) (*tls.Config, error) + func QualifiesForManagedTLS(c ConfigHolder) bool + func RegisterConfigGetter(serverType string, fn ConfigGetter) + func RegisterDNSProvider(name string, provider DNSProviderConstructor) + func RegisterStorageProvider(name string, provider StorageConstructor) + func RenewManagedCertificates(allowPrompts bool) (err error) + func Revoke(host string) error + func RotateSessionTicketKeys(cfg *tls.Config) chan struct + func SetDefaultTLSParams(config *Config) + func UpdateOCSPStaples() + type ACMEClient struct + AllowPrompts bool + func (c *ACMEClient) Obtain(name string) error + func (c *ACMEClient) Renew(name string) error + func (c *ACMEClient) Revoke(name string) error + type Certificate struct + Config *Config + Names []string + NotAfter time.Time + OCSP *ocsp.Response + func CacheManagedCertificate(domain string, cfg *Config) (Certificate, error) + type Config struct + ACMEEmail string + AltHTTPPort string + CAUrl string + Ciphers []uint16 + ClientAuth tls.ClientAuthType + ClientCerts []string + CurvePreferences []tls.CurveID + DNSProvider string + Enabled bool + Hostname string + KeyType acme.KeyType + ListenHost string + Managed bool + Manual bool + MustStaple bool + OnDemand bool + OnDemandState OnDemandState + PreferServerCipherSuites bool + ProtocolMaxVersion uint16 + ProtocolMinVersion uint16 + SelfSigned bool + StorageProvider string + func (c *Config) ObtainCert(name string, allowPrompts bool) error + func (c *Config) RenewCert(name string, allowPrompts bool) error + func (c *Config) StorageFor(caURL string) (Storage, error) + type ConfigGetter func(c *caddy.Controller) *Config + type ConfigHolder interface + Host func() string + Port func() string + TLSConfig func() *Config + type DNSProviderConstructor func(credentials ...string) (acme.ChallengeProvider, error) + type ErrNotExist interface + type FileStorage struct + Path string + func (s *FileStorage) DeleteSite(domain string) error + func (s *FileStorage) LoadSite(domain string) (*SiteData, error) + func (s *FileStorage) LoadUser(email string) (*UserData, error) + func (s *FileStorage) MostRecentUserEmail() string + func (s *FileStorage) SiteExists(domain string) (bool, error) + func (s *FileStorage) StoreSite(domain string, data *SiteData) error + func (s *FileStorage) StoreUser(email string, data *UserData) error + func (s *FileStorage) TryLock(name string) (Waiter, error) + func (s *FileStorage) Unlock(name string) error + type OnDemandState struct + MaxObtain int32 + ObtainedCount int32 + type SiteData struct + Cert []byte + Key []byte + Meta []byte + type Storage interface + DeleteSite func(domain string) error + LoadSite func(domain string) (*SiteData, error) + LoadUser func(email string) (*UserData, error) + MostRecentUserEmail func() string + SiteExists func(domain string) (bool, error) + StoreSite func(domain string, data *SiteData) error + StoreUser func(email string, data *UserData) error + TryLock func(name string) (Waiter, error) + Unlock func(name string) error + func NewFileStorage(caURL *url.URL) (Storage, error) + type StorageConstructor func(caURL *url.URL) (Storage, error) + type User struct + Email string + Registration *acme.RegistrationResource + func (u User) GetEmail() string + func (u User) GetPrivateKey() crypto.PrivateKey + func (u User) GetRegistration() *acme.RegistrationResource + type UserData struct + Key []byte + Reg []byte + type Waiter interface + Wait func()