Clearer error message when goodkey fails unexpectedly (#7642)

This will prevent users from believing their key is at fault when the
actual error is between Boulder and the database.

Fixes https://github.com/letsencrypt/boulder/issues/7624
This commit is contained in:
Aaron Gable 2024-08-06 09:23:06 -07:00 committed by GitHub
parent b9eff346fc
commit e398c4d1ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ func (wfe *WebFrontEndImpl) validSelfAuthenticatedPOST(
wfe.stats.joseErrorCount.With(prometheus.Labels{"type": "JWKRejectedByGoodKey"}).Inc()
return nil, nil, probs.BadPublicKey(err.Error())
}
return nil, nil, probs.ServerInternal("error checking key quality")
return nil, nil, probs.ServerInternal("internal error while checking JWK")
}
return payload, pubKey, nil