From 0cebde3db52d1f6a19982936a2983753fbc62684 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 3 Dec 2021 15:11:34 -0800 Subject: [PATCH] Change fallback message on RekeySSH. --- api/sshRekey.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/sshRekey.go b/api/sshRekey.go index b2c55509..8670f0bd 100644 --- a/api/sshRekey.go +++ b/api/sshRekey.go @@ -68,7 +68,7 @@ func (h *caHandler) SSHRekey(w http.ResponseWriter, r *http.Request) { newCert, err := h.Authority.RekeySSH(ctx, oldCert, publicKey, signOpts...) if err != nil { - WriteError(w, errs.ForbiddenErr(err, "error signing ssh certificate")) + WriteError(w, errs.ForbiddenErr(err, "error rekeying ssh certificate")) return } @@ -78,7 +78,7 @@ func (h *caHandler) SSHRekey(w http.ResponseWriter, r *http.Request) { identity, err := h.renewIdentityCertificate(r, notBefore, notAfter) if err != nil { - WriteError(w, errs.ForbiddenErr(err, "error signing identity certificate")) + WriteError(w, errs.ForbiddenErr(err, "error renewing identity certificate")) return }