]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove "-nodes" option from make-certs scripts 773/head
authorRobbie Harwood <rharwood@redhat.com>
Thu, 3 May 2018 18:40:45 +0000 (14:40 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 May 2018 04:28:20 +0000 (00:28 -0400)
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]

src/tests/dejagnu/pkinit-certs/make-certs.sh
src/tests/dejagnu/proxy-certs/make-certs.sh

index 63f0c6f75b8b550d78b8d97b7a8ca64b672dfeff..387311aed0c90b06cdafcc328bb7af3af4bed2db 100755 (executable)
@@ -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.
index 1191bf05e399243b586baa086000c7e6d5b9dd3c..24ef91bdee71a8274392bc010a8473262a69e860 100755 (executable)
@@ -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 \