chantra / rpms / tpm2-tss

Forked from rpms/tpm2-tss 2 years ago
Clone

Blame SOURCES/0004-Test-Remove-duplicate-openssl-req-new.patch

a23473
From 738f6f045e740c3fc21579297990d60b7c2e83ed Mon Sep 17 00:00:00 2001
a23473
From: Petr Gotthard <petr.gotthard@centrum.cz>
a23473
Date: Sat, 17 Jul 2021 20:23:32 +0200
a23473
Subject: Test: Remove duplicate openssl req -new
a23473
MIME-Version: 1.0
a23473
Content-Type: text/plain; charset=UTF-8
a23473
Content-Transfer-Encoding: 8bit
a23473
a23473
The command is called twice, which is superfluous. Both the key
a23473
and the certificate are created already by the first command.
a23473
a23473
Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
a23473
---
a23473
 script/ekca/create_ca.sh | 5 -----
a23473
 1 file changed, 5 deletions(-)
a23473
a23473
diff --git a/script/ekca/create_ca.sh b/script/ekca/create_ca.sh
a23473
index 90a5c791..61d976a3 100755
a23473
--- a/script/ekca/create_ca.sh
a23473
+++ b/script/ekca/create_ca.sh
a23473
@@ -94,11 +94,6 @@ ${SED_CMD} "s|ROOTCRT|$ROOT_URL|g" $OPENSSL_CONF
a23473
 
a23473
 openssl req -new -out intermed-ca.req.pem -passout file:pass.txt
a23473
 
a23473
-openssl req -new \
a23473
-    -key private/intermed-ca.key.pem \
a23473
-    -out intermed-ca.req.pem \
a23473
-    -passin file:pass.txt
a23473
-
a23473
 openssl rsa -inform PEM -in private/intermed-ca.key.pem \
a23473
         -outform DER -out private/intermed-ca.key.der -passin file:pass.txt
a23473
 
a23473
-- 
a23473
2.26.3
a23473