From 189cbcedc43f9a2e3df588595d2cc1c1600f34ab Mon Sep 17 00:00:00 2001 From: Francisco Ferrari Bihurriet Date: Jun 30 2022 18:01:15 +0000 Subject: RH2007331: SecretKey generate/import operations don't add the CKA_SIGN attribute in FIPS mode Use SunPKCS11 Attributes Configuration to set CKA_SIGN=true on SecretKey generate/import operations in FIPS mode, see: https://docs.oracle.com/en/java/javase/11/security/pkcs11-reference-guide1.html#GUID-C4ABFACB-B2C9-4E71-A313-79F881488BB9__PKCS11-ATTRIBUTES-CONFIGURATION --- diff --git a/java-11-openjdk.spec b/java-11-openjdk.spec index c2117a9..38efa95 100644 --- a/java-11-openjdk.spec +++ b/java-11-openjdk.spec @@ -367,7 +367,7 @@ %global top_level_dir_name %{origin} %global top_level_dir_name_backup %{top_level_dir_name}-backup %global buildver 10 -%global rpmrelease 1 +%global rpmrelease 2 #%%global tagsuffix %%{nil} # Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit %if %is_system_jdk @@ -2621,6 +2621,9 @@ end %endif %changelog +* Thu Jun 30 2022 Francisco Ferrari Bihurriet - 1:11.0.15.0.10-2 +- RH2007331: SecretKey generate/import operations don't add the CKA_SIGN attribute in FIPS mode + * Sun Apr 24 2022 Andrew Hughes - 1:11.0.15.0.10-1 - Update to jdk-11.0.15.0+10 - Update release notes to 11.0.15.0+10 diff --git a/nss.fips.cfg.in b/nss.fips.cfg.in index 1aff153..2d9ec35 100644 --- a/nss.fips.cfg.in +++ b/nss.fips.cfg.in @@ -4,3 +4,5 @@ nssSecmodDirectory = sql:/etc/pki/nssdb nssDbMode = readOnly nssModule = fips +attributes(*,CKO_SECRET_KEY,CKK_GENERIC_SECRET)={ CKA_SIGN=true } +