Documentation
¶
Index ¶
- Constants
- type Certificate
- type Client
- func (c *Client) GetRenewalInfo(ctx context.Context, cert x509.Certificate) (acme.RenewalInfo, error)
- func (c *Client) ObtainCertificate(ctx context.Context, sans []string, keyType KeyType) (Certificate, error)
- func (c *Client) ObtainIPCertificate(ctx context.Context, sans []string, keyType KeyType) (Certificate, error)
- func (c *Client) RenewCertificate(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
- func (c *Client) UseDns(dnsType DnsType, param DNSParam, opt ...DnsOption)
- func (c *Client) UseHTTP(conf string, webServer string)
- func (c *Client) UsePanel(ip []string, conf string, webServer string)
- type DNSParam
- type DNSProvider
- type DnsOption
- 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" CALiteSSL = "https://acme.litessl.com/acme/v2/directory" CAZeroSSL = "https://acme.zerossl.com/v2/DV90" 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) GetRenewalInfo ¶
func (c *Client) GetRenewalInfo(ctx context.Context, cert x509.Certificate) (acme.RenewalInfo, error)
GetRenewalInfo 获取续签建议
func (*Client) ObtainCertificate ¶
func (c *Client) ObtainCertificate(ctx context.Context, sans []string, keyType KeyType) (Certificate, error)
ObtainCertificate 签发 SSL 证书
func (*Client) ObtainIPCertificate ¶
func (c *Client) ObtainIPCertificate(ctx context.Context, sans []string, keyType KeyType) (Certificate, error)
ObtainIPCertificate 签发 IP SSL 证书
func (*Client) RenewCertificate ¶
func (c *Client) RenewCertificate(ctx context.Context, certUrl string, domains []string, keyType KeyType) (Certificate, error)
RenewCertificate 续签 SSL 证书
type DNSProvider ¶
type DNSProvider interface {
libdns.RecordSetter
libdns.RecordDeleter
}
type DnsOption ¶ added in v3.2.0
type DnsOption struct {
Alias map[string]string // DNS 验证别名映射 (domain → delegated domain)
DnsServer string // DNS 验证服务器地址
SkipVerify bool // 跳过解析验证
ProgressCallback func(string) // 进度回调
}
DnsOption DNS 验证的可选配置
Click to show internal directories.
Click to hide internal directories.