package
0.0.0-20240705062241-ff0563159325
Repository: https://github.com/codfrm/dns-kit.git
Documentation: pkg.go.dev
# README
ACME
你可以看看我的这篇文章,学习一下 ACME 协议:ACME 协议
func main() {
ctx:=context.Background()
acme, err := NewAcme("[email protected]", []string{"test2.ggnb.top"})
if err!=nil{
fmt.Println(err)
return
}
challenge,err := acme.GetChallenge(ctx)
if err != nil {
fmt.Println(err)
return
}
// 设置dns操作
time.Sleep(10*time.Second)
// 等待acme验证
err = acme.WaitChallenge(ctx)
if err != nil {
fmt.Println(err)
return
}
// 生成证书
data, err := acme.GetCertificate(ctx)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(data))
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author