mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 04:30:09 +00:00
12 lines
255 B
Go
12 lines
255 B
Go
package handler
|
|
|
|
import "fmt"
|
|
|
|
func (h *Handler) RenewCertHandle() error {
|
|
err := h.acme.RenewCert(h.Options.Cert.CertPath, h.Options.Cert.KeyPath, h.Options.Cert.Domain)
|
|
if err != nil {
|
|
return fmt.Errorf("renew cert error: %w", err)
|
|
}
|
|
return nil
|
|
}
|