Skip to content

Commit

Permalink
Clean up exception messages in PKCS10
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Aug 21, 2024
1 parent 8122c91 commit c194dd8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ else if (idName.equals("SHA512withEC"))
sig.initVerify(publicKey);
sig.update(data);
if (!sig.verify(sigData)) {
logger.error("PKCS10: " + msg + "sig.verify() failed");
logger.error("PKCS10: " + msg + "Invalid PKCS #10 signature");
throw new SignatureException(msg + "Invalid PKCS #10 signature");
}
}
} catch (InvalidKeyException e) {
logger.error("PKCS10: " + msg + e.getMessage());
throw new SignatureException(msg + "invalid key", e);
logger.error("PKCS10: " + msg + e.getMessage(), e);
throw new SignatureException(msg + e.getMessage(), e);
}
logger.debug("PKCS10: ends");
}
Expand Down

0 comments on commit c194dd8

Please sign in to comment.