From: Robbie Harwood Date: Thu, 3 May 2018 18:40:45 +0000 (-0400) Subject: Remove "-nodes" option from make-certs scripts X-Git-Tag: krb5-1.17-beta1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=928a36aae326d496c9a73f2cd41b4da45eef577c;p=thirdparty%2Fkrb5.git Remove "-nodes" option from make-certs scripts The openssl command does not recognize options after positional arguments, so in "openssl genrsa $KEYSIZE -nodes", the "-nodes" was ignored as a excess positional argument prior to OpenSSL 1.1.0h, and now causes an error. "-nodes" is an option to the openssl req and pkcs12 subcommands, but genrsa creates unencrypted keys by default. [ghudson@mit.edu: edited commit message] --- diff --git a/src/tests/dejagnu/pkinit-certs/make-certs.sh b/src/tests/dejagnu/pkinit-certs/make-certs.sh index 63f0c6f75b..387311aed0 100755 --- a/src/tests/dejagnu/pkinit-certs/make-certs.sh +++ b/src/tests/dejagnu/pkinit-certs/make-certs.sh @@ -114,7 +114,7 @@ extendedKeyUsage = $CLIENT_EKU_LIST EOF # Generate a private key. -openssl genrsa $KEYSIZE -nodes > privkey.pem +openssl genrsa $KEYSIZE > privkey.pem openssl rsa -in privkey.pem -out privkey-enc.pem -des3 -passout pass:encrypted # Generate a "CA" certificate. diff --git a/src/tests/dejagnu/proxy-certs/make-certs.sh b/src/tests/dejagnu/proxy-certs/make-certs.sh index 1191bf05e3..24ef91bdee 100755 --- a/src/tests/dejagnu/proxy-certs/make-certs.sh +++ b/src/tests/dejagnu/proxy-certs/make-certs.sh @@ -79,7 +79,7 @@ extendedKeyUsage = $PROXY_EKU_LIST EOF # Generate a private key. -openssl genrsa $KEYSIZE -nodes > privkey.pem +openssl genrsa $KEYSIZE > privkey.pem # Generate a "CA" certificate. SUBJECT=signer openssl req -config openssl.cnf -new -x509 -extensions exts_ca \