From dd985ce154a4abd7733e303679df2698b365c07b Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 19 May 2022 18:41:13 -0700 Subject: [PATCH] Clarify errors when sending renewed certificates --- authority/linkedca.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/linkedca.go b/authority/linkedca.go index 9daba353..fd5c0a81 100644 --- a/authority/linkedca.go +++ b/authority/linkedca.go @@ -289,7 +289,7 @@ func (c *linkedCaClient) StoreRenewedCertificate(parent *x509.Certificate, fullc PemCertificateChain: serializeCertificateChain(fullchain[1:]...), PemParentCertificate: serializeCertificateChain(parent), }) - return errors.Wrap(err, "error posting certificate") + return errors.Wrap(err, "error posting renewed certificate") } func (c *linkedCaClient) StoreSSHCertificate(prov provisioner.Interface, crt *ssh.Certificate) error { @@ -309,7 +309,7 @@ func (c *linkedCaClient) StoreRenewedSSHCertificate(parent, crt *ssh.Certificate Certificate: string(ssh.MarshalAuthorizedKey(crt)), ParentCertificate: string(ssh.MarshalAuthorizedKey(parent)), }) - return errors.Wrap(err, "error posting ssh certificate") + return errors.Wrap(err, "error posting renewed ssh certificate") } func (c *linkedCaClient) Revoke(crt *x509.Certificate, rci *db.RevokedCertificateInfo) error {