mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
fix lego
This commit is contained in:
parent
cacc16463a
commit
6deed8034e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user