Blame SOURCES/Add-test-cert-with-no-extensions.patch

963210
From dd189f46b9e43392b842c4309c95dc7e71963261 Mon Sep 17 00:00:00 2001
963210
From: Greg Hudson <ghudson@mit.edu>
963210
Date: Thu, 5 Oct 2017 12:54:13 -0400
963210
Subject: [PATCH] Add test cert with no extensions
963210
963210
Add commands to make-certs.sh to generate a test client certificate
963210
with no certificate extensions.  Re-run make-certs.sh.
963210
963210
ticket: 8562
963210
(cherry-picked from commit 0d23835660ab131d244d395e4568969b5c0dc678)
963210
[rharwood@redhat.com: only backport the make-certs.sh changes]
963210
---
963210
 src/tests/dejagnu/pkinit-certs/make-certs.sh | 9 +++++++++
963210
 1 file changed, 9 insertions(+)
963210
963210
diff --git a/src/tests/dejagnu/pkinit-certs/make-certs.sh b/src/tests/dejagnu/pkinit-certs/make-certs.sh
963210
index 0d8c2019a..23426af8a 100755
963210
--- a/src/tests/dejagnu/pkinit-certs/make-certs.sh
963210
+++ b/src/tests/dejagnu/pkinit-certs/make-certs.sh
963210
@@ -163,5 +163,14 @@ SUBJECT=user openssl x509 -extfile openssl.cnf -extensions exts_upn3_client \
963210
 openssl pkcs12 -export -in user-upn3.pem -inkey privkey.pem \
963210
      -out user-upn3.p12 -passout pass:
963210
 
963210
+# Generate a client certificate and PKCS#12 bundle with no PKINIT extensions.
963210
+SUBJECT=user openssl req -config openssl.cnf -new -subj /CN=user \
963210
+    -key privkey.pem -out generic.csr
963210
+SUBJECT=user openssl x509 -set_serial 7 -days $DAYS -req -CA ca.pem \
963210
+    -CAkey privkey.pem -out generic.pem -in generic.csr
963210
+openssl pkcs12 -export -in generic.pem -inkey privkey.pem -out generic.p12 \
963210
+    -passout pass:
963210
+
963210
 # Clean up.
963210
 rm -f openssl.cnf kdc.csr user.csr user-upn.csr user-upn2.csr user-upn3.csr
963210
+rm -f generic.csr