Skip to content

Commit

Permalink
Delete old cert in updateCertForDomain()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Jan 13, 2024
1 parent 2ad9859 commit 0719ef1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions object/site_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0719ef1

Please sign in to comment.