This commit is contained in:
yuzuki999 2023-09-06 23:28:38 +08:00
parent cacc16463a
commit 6deed8034e

View File

@ -92,6 +92,7 @@ func (l *Lego) SetProvider() error {
func (l *Lego) CreateCert() (err error) { func (l *Lego) CreateCert() (err error) {
request := certificate.ObtainRequest{ request := certificate.ObtainRequest{
Domains: []string{l.config.CertDomain}, Domains: []string{l.config.CertDomain},
Bundle: true,
} }
certificates, err := l.client.Certificate.Obtain(request) certificates, err := l.client.Certificate.Obtain(request)
if err != nil { if err != nil {
@ -114,7 +115,7 @@ func (l *Lego) RenewCert() error {
res, err := l.client.Certificate.Renew(certificate.Resource{ res, err := l.client.Certificate.Renew(certificate.Resource{
Domain: l.config.CertDomain, Domain: l.config.CertDomain,
Certificate: file, Certificate: file,
}, false, false, "") }, true, false, "")
if err != nil { if err != nil {
return err return err
} }