Blame SOURCES/Remove-nodes-option-from-make-certs-scripts.patch

167778
From 7e7719fcad9c0c5a14b4006989f5481dfbd78c3d Mon Sep 17 00:00:00 2001
167778
From: Robbie Harwood <rharwood@redhat.com>
167778
Date: Thu, 3 May 2018 14:40:45 -0400
167778
Subject: [PATCH] Remove "-nodes" option from make-certs scripts
167778
167778
The openssl command does not recognize options after positional
167778
arguments, so in "openssl genrsa $KEYSIZE -nodes", the "-nodes" was
167778
ignored as a excess positional argument prior to OpenSSL 1.1.0h, and
167778
now causes an error.  "-nodes" is an option to the openssl req and
167778
pkcs12 subcommands, but genrsa creates unencrypted keys by default.
167778
167778
[ghudson@mit.edu: edited commit message]
167778
167778
(cherry picked from commit 928a36aae326d496c9a73f2cd41b4da45eef577c)
167778
(cherry picked from commit 83da5675551dba13fee837adc26ce885a061dbc1)
167778
---
167778
 src/tests/dejagnu/pkinit-certs/make-certs.sh | 2 +-
167778
 src/tests/dejagnu/proxy-certs/make-certs.sh  | 2 +-
167778
 2 files changed, 2 insertions(+), 2 deletions(-)
167778
167778
diff --git a/src/tests/dejagnu/pkinit-certs/make-certs.sh b/src/tests/dejagnu/pkinit-certs/make-certs.sh
167778
index 23426af8a..fa937f449 100755
167778
--- a/src/tests/dejagnu/pkinit-certs/make-certs.sh
167778
+++ b/src/tests/dejagnu/pkinit-certs/make-certs.sh
167778
@@ -114,7 +114,7 @@ extendedKeyUsage = $CLIENT_EKU_LIST
167778
 EOF
167778
 
167778
 # Generate a private key.
167778
-openssl genrsa $KEYSIZE -nodes > privkey.pem
167778
+openssl genrsa $KEYSIZE > privkey.pem
167778
 openssl rsa -in privkey.pem -out privkey-enc.pem -des3 -passout pass:encrypted
167778
 
167778
 # Generate a "CA" certificate.
167778
diff --git a/src/tests/dejagnu/proxy-certs/make-certs.sh b/src/tests/dejagnu/proxy-certs/make-certs.sh
167778
index 1191bf05e..24ef91bde 100755
167778
--- a/src/tests/dejagnu/proxy-certs/make-certs.sh
167778
+++ b/src/tests/dejagnu/proxy-certs/make-certs.sh
167778
@@ -79,7 +79,7 @@ extendedKeyUsage = $PROXY_EKU_LIST
167778
 EOF
167778
 
167778
 # Generate a private key.
167778
-openssl genrsa $KEYSIZE -nodes > privkey.pem
167778
+openssl genrsa $KEYSIZE > privkey.pem
167778
 
167778
 # Generate a "CA" certificate.
167778
 SUBJECT=signer openssl req -config openssl.cnf -new -x509 -extensions exts_ca \