Skip to content

Commit

Permalink
Fix CRMFPopClient on FIPS environment
Browse files Browse the repository at this point in the history
When FIPS is enabled RSA key generation cannot have both temporary and
sensitive to false.

Since temporary is defined from a command option the sensitive is set to
null so the default for the environment will be used (true if FIPS is
enabled and false if FIPS is disabled).

Fix BZ Bug 2250716
  • Loading branch information
fmarco76 committed Nov 27, 2023
1 parent ace8e9b commit 875e5c8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ public static void main(String args[]) throws Exception {

if (algorithm.equals("rsa")) {

boolean sens = false;
boolean extract = true;

Usage[] usages = CryptoUtil.RSA_KEYPAIR_USAGES;
Expand All @@ -494,7 +493,7 @@ public static void main(String args[]) throws Exception {
token,
keySize,
temporary,
sens,
null,
extract,
usages,
usagesMask);
Expand Down

0 comments on commit 875e5c8

Please sign in to comment.