Skip to content

Commit

Permalink
Correctly encode cert for renewal. (#734)
Browse files Browse the repository at this point in the history
Fixes #725
  • Loading branch information
tamalsaha committed Dec 12, 2017
1 parent 335db0c commit 08dc57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/certificate/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *Controller) renew() error {
CertURL: c.crd.Status.LastIssuedCertificate.CertURL,
CertStableURL: c.crd.Status.LastIssuedCertificate.CertStableURL,
AccountRef: c.crd.Status.LastIssuedCertificate.AccountRef,
Certificate: c.curCert.Raw,
Certificate: cert.EncodeCertPEM(c.curCert),
PrivateKey: nil, // issue new private key,
}
cert, err := c.acmeClient.RenewCertificate(acmeCert, true, false)
Expand Down

0 comments on commit 08dc57b

Please sign in to comment.