Documentation ¶
Index ¶
- Constants
- 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) ObtainCertificate(ctx context.Context, domains []string, keyType KeyType) (Certificate, error)
- func (c *Client) ObtainCertificateManual() (Certificate, error)
- func (s Client) Present(ctx context.Context, challenge acme.Challenge) error
- func (c *Client) RenewCertificate(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
- func (c *Client) UseDns(dnsType DnsType, param DNSParam)
- func (c *Client) UseHTTP(conf 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 ( CAGoogleCN = "https://gts.rat.dev/directory" CAGoogle = "https://dv.acme-v02.api.pki.goog/directory" CALetsEncryptStaging = "https://acme-staging-v02.api.letsencrypt.org/directory" CALetsEncrypt = "https://acme-v02.api.letsencrypt.org/directory" CAZeroSSL = "https://acme.zerossl.com/v2/DV90" CABuypass = "https://api.buypass.com/acme/directory" CASSLcom = "https://acme.ssl.com/sslcom-dv-rsa" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) ObtainCertificate ¶
func (c *Client) ObtainCertificate(ctx context.Context, domains []string, keyType KeyType) (Certificate, error)
ObtainCertificate 签发 SSL 证书
func (*Client) ObtainCertificateManual ¶
func (c *Client) ObtainCertificateManual() (Certificate, error)
ObtainCertificateManual 手动验证 SSL 证书
func (*Client) RenewCertificate ¶
func (c *Client) RenewCertificate(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
RenewCertificate 续签 SSL 证书
func (*Client) UseManualDns ¶
UseManualDns 使用手动 DNS 验证
type DNSProvider ¶
type DNSProvider interface { libdns.RecordSetter libdns.RecordDeleter }
Click to show internal directories.
Click to hide internal directories.