diff --git a/object/site_cert.go b/object/site_cert.go index 6e2fb65..ee95056 100644 --- a/object/site_cert.go +++ b/object/site_cert.go @@ -154,6 +154,12 @@ func (site *Site) updateCertForDomain(domain string) error { Certificate: certificate, PrivateKey: privateKey, } + + _, err = DeleteCert(&cert) + if err != nil { + return err + } + _, err = AddCert(&cert) if err != nil { return err