Skip to content

Commit 1457a75

Browse files
JinhangZhangpshipton
authored andcommitted
Fix the PKCS11Exception: CKR_KEY_TYPE_INCONSISTENT in FIPS mode
Refer to [Redhat-2007331](https://bugzilla.redhat.com/show_bug.cgi?id=2007331). Add a CKA_SIGN attribute to a key that is generated by the MAC service initialization in the FIPS mode. Signed-off-by: Jinhang Zhang <[email protected]>
1 parent 3dbeb07 commit 1457a75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

closed/src/java.base/share/conf/security/nss.fips.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ nssLibraryDirectory = /usr/lib64
2323
nssSecmodDirectory = /etc/pki/nssdb
2424
nssDbMode = readOnly
2525
nssModule = fips
26+
27+
attributes(*,CKO_SECRET_KEY,CKK_GENERIC_SECRET)={ CKA_SIGN=true }

0 commit comments

Comments
 (0)