Blame SOURCES/nss-3.66-restore-old-pkcs12-default.patch

c2a015
diff -up ./cmd/pk12util/pk12util.c.orig ./cmd/pk12util/pk12util.c
c2a015
--- ./cmd/pk12util/pk12util.c.orig	2021-05-28 02:50:43.000000000 -0700
c2a015
+++ ./cmd/pk12util/pk12util.c	2021-06-15 17:05:37.200262345 -0700
c2a015
@@ -1031,9 +1031,11 @@ main(int argc, char **argv)
c2a015
     char *export_file = NULL;
c2a015
     char *dbprefix = "";
c2a015
     SECStatus rv;
c2a015
-    SECOidTag cipher = SEC_OID_AES_256_CBC;
c2a015
-    SECOidTag hash = SEC_OID_SHA256;
c2a015
-    SECOidTag certCipher = SEC_OID_AES_128_CBC;
c2a015
+    SECOidTag cipher = 
c2a015
+        SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_3KEY_TRIPLE_DES_CBC;
c2a015
+    SECOidTag hash = SEC_OID_SHA1;
c2a015
+    SECOidTag certCipher = 
c2a015
+        SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_40_BIT_RC2_CBC;
c2a015
     int keyLen = 0;
c2a015
     int certKeyLen = 0;
c2a015
     secuCommand pk12util;
c2a015
@@ -1147,6 +1149,9 @@ main(int argc, char **argv)
c2a015
         }
c2a015
     }
c2a015
 
c2a015
+    if (PK11_IsFIPS()) {
c2a015
+        certCipher =  SEC_OID_UNKNOWN;
c2a015
+    }
c2a015
     if (pk12util.options[opt_CertCipher].activated) {
c2a015
         char *cipherString = pk12util.options[opt_CertCipher].arg;
c2a015
 
c2a015
diff -up ./tests/tools/tools.sh.orig ./tests/tools/tools.sh
c2a015
--- ./tests/tools/tools.sh.orig	2021-06-15 17:06:27.650564449 -0700
c2a015
+++ ./tests/tools/tools.sh	2021-06-15 17:07:59.934117192 -0700
c2a015
@@ -47,9 +47,9 @@
c2a015
 "PKCS #5 Password Based Encryption with SHA-1 and DES-CBC"
c2a015
 
c2a015
   # if we change the defaults in pk12util, update these variables
c2a015
-  export CERT_ENCRYPTION_DEFAULT="AES-128-CBC"
c2a015
-  export KEY_ENCRYPTION_DEFAULT="AES-256-CBC"
c2a015
-  export HASH_DEFAULT="SHA-256"
c2a015
+  export CERT_ENCRYPTION_DEFAULT=${pkcs12v2pbeWithSha1And40BitRc2Cbc}
c2a015
+  export KEY_ENCRYPTION_DEFAULT=${pkcs12v2pbeWithSha1AndTripleDESCBC}
c2a015
+  export HASH_DEFAULT="SHA-1"
c2a015
 
c2a015
   export PKCS5v1_PBE_CIPHERS="${pkcs5pbeWithMD2AndDEScbc},\
c2a015
 ${pkcs5pbeWithMD5AndDEScbc},\