Documentation ¶
Index ¶
- Constants
- Variables
- type ACMEAccount
- type ACMECertificate
- type Config
- func (c *Config) CheckCertTypeByDomain(domain string) (typ pb.Certificate_Type, name string)
- func (c *Config) CheckCertTypeByName(name string) (typ pb.Certificate_Type, resultName string)
- func (c *Config) GeneratePrivateKey(certName string) (crypto.Signer, error)
- func (c *Config) GetACMEConfig(certName string) (acc *ACMEAccount, cert *ACMECertificate, err error)
- func (c *Config) GetDNSCredential(name string) *DNSCredential
- func (c *Config) GetManagedCertReloadInterval() time.Duration
- func (c *Config) GetNamedACMECertificate(name string) *ACMECertificate
- func (c *Config) IsManagedCertEnableOCSPStapling(name string) bool
- type DNSCredential
- type ManagedCertificate
- type RedisConfig
Constants ¶
View Source
const ( Version2 = "2" LetsEncryptURL = "https://acme-v02.api.letsencrypt.org/directory" LetsEncryptStagingURL = "https://acme-staging-v02.api.letsencrypt.org/directory" )
Variables ¶
View Source
var DefaultSelfSignedOrganizations = []string{"SSL Cert Server Self-Signed"}
Functions ¶
This section is empty.
Types ¶
type ACMEAccount ¶
type ACMEAccount struct {
Email string `yaml:"email"`
}
type ACMECertificate ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Listen string `yaml:"listen" default:"127.0.0.1:8999"` PIDFile string `yaml:"pid_file" default:"ssl-cert-server.pid"` Storage struct { Type string `yaml:"type" default:"dir_cache"` DirCache string `yaml:"dir_cache" default:"./secret-dir"` Redis RedisConfig `yaml:"redis"` } `yaml:"storage"` SelfSigned struct { Enable bool `yaml:"enable"` CheckDomainName bool `yaml:"check_domain_name"` Domains []string `yaml:"domains"` DomainRegex []string `yaml:"domain_regex"` ValidDays int `yaml:"valid_days"` Organization string `yaml:"organization"` } `yaml:"self_signed"` Managed struct { ReloadInterval string `yaml:"reload_interval"` Certificates []*ManagedCertificate `yaml:"certificates"` } `yaml:"managed"` ACME struct { DirectoryURL string `yaml:"directory_url" default:"https://acme-v02.api.letsencrypt.org/directory"` ForceRSA bool `yaml:"force_rsa"` RenewBefore int `yaml:"renew_before" default:"30"` DefaultAccount *ACMEAccount `yaml:"default_account"` Accounts []*ACMEAccount `yaml:"accounts"` DNSCredentials []*DNSCredential `yaml:"dns_credentials"` OnDemand struct { Domains []string `yaml:"domains"` DomainRegex []string `yaml:"domain_regex"` } `yaml:"on_demand"` Named struct { Certificates []*ACMECertificate `yaml:"certificates"` } `yaml:"named"` } `yaml:"acme"` // contains filtered or unexported fields }
func LoadConfig ¶
func (*Config) CheckCertTypeByDomain ¶
func (c *Config) CheckCertTypeByDomain(domain string) (typ pb.Certificate_Type, name string)
func (*Config) CheckCertTypeByName ¶
func (c *Config) CheckCertTypeByName(name string) (typ pb.Certificate_Type, resultName string)
func (*Config) GeneratePrivateKey ¶
func (*Config) GetACMEConfig ¶
func (c *Config) GetACMEConfig(certName string) (acc *ACMEAccount, cert *ACMECertificate, err error)
func (*Config) GetDNSCredential ¶
func (c *Config) GetDNSCredential(name string) *DNSCredential
func (*Config) GetManagedCertReloadInterval ¶
func (*Config) GetNamedACMECertificate ¶
func (c *Config) GetNamedACMECertificate(name string) *ACMECertificate
func (*Config) IsManagedCertEnableOCSPStapling ¶
type DNSCredential ¶
type ManagedCertificate ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.