Documentation ¶
Index ¶
- Constants
- func GenerateSelfSignedSSL(domains []string) ([]byte, []byte, error)
- type Certificate
- type Client
- func (s Client) CleanUp(_ context.Context, _ acme.Challenge) error
- func (c *Client) GetDNSRecords(ctx context.Context, domains []string, keyType KeyType) ([]DNSRecord, error)
- func (c *Client) ObtainSSL(ctx context.Context, domains []string, keyType KeyType) (Certificate, error)
- func (c *Client) ObtainSSLManual() (Certificate, error)
- func (s Client) Present(ctx context.Context, challenge acme.Challenge) error
- func (c *Client) RenewSSL(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
- func (c *Client) UseDns(dnsType DnsType, param DNSParam)
- func (c *Client) UseHTTP(conf, path string)
- func (c *Client) UseManualDns(total int, check ...bool)
- type DNSParam
- type DNSProvider
- type DNSRecord
- type DnsType
- type EAB
- type KeyType
Constants ¶
View Source
const ( CALetsEncryptStaging = "https://acme-staging-v02.api.letsencrypt.org/directory" CALetsEncrypt = "https://acme-v02.api.letsencrypt.org/directory" CAZeroSSL = "https://acme.zerossl.com/v2/DV90" CAGoogle = "https://dv.acme-v02.api.pki.goog/directory" CABuypass = "https://api.buypass.com/acme/directory" CASSLcom = "https://acme.ssl.com/sslcom-dv-rsa" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { PrivateKey []byte acme.Certificate }
type Client ¶
func NewPrivateKeyAccount ¶
func NewRegisterAccount ¶
func (*Client) GetDNSRecords ¶
func (c *Client) GetDNSRecords(ctx context.Context, domains []string, keyType KeyType) ([]DNSRecord, error)
GetDNSRecords 获取 DNS 解析(手动设置)
func (*Client) ObtainSSL ¶
func (c *Client) ObtainSSL(ctx context.Context, domains []string, keyType KeyType) (Certificate, error)
ObtainSSL 签发 SSL 证书
func (*Client) ObtainSSLManual ¶
func (c *Client) ObtainSSLManual() (Certificate, error)
ObtainSSLManual 手动验证 SSL 证书
func (*Client) RenewSSL ¶
func (c *Client) RenewSSL(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
RenewSSL 续签 SSL 证书
func (*Client) UseManualDns ¶
UseManualDns 使用手动 DNS 验证
type DNSProvider ¶
type DNSProvider interface { libdns.RecordAppender libdns.RecordDeleter }
Click to show internal directories.
Click to hide internal directories.