git地址:
说明:
获取 Let's Encrypt 证书 有3种方式:
- 通过80端口方式获取。
- 通过https的443端口方式获取。
- 通过 云服务商增加dns解析获取,支持泛域名。
通过80端口方式获取
// You'll need a user or account type that implements acme.User
type MyUser struct {
Email string
Registration *registration.Resource
key crypto.PrivateKey
}
func (u *MyUser) GetEmail() string {
return u.Email
}
func (u MyUser) GetRegistration() *registration.Resource {
return u.Registration
}
func (u *MyUser) GetPrivateKey() crypto.Pr