Change fallback message on RekeySSH.

This commit is contained in:
Mariano Cano 2021-12-03 15:11:34 -08:00
parent 9fd147f3da
commit 0cebde3db5

View file

@ -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
}