Blame SOURCES/0028-rpm-Make-the-client-signer-use-the-fedora-values-unl.patch

793dd5
From 025eb8aea94761fdc45507b6192aafdef80d4842 Mon Sep 17 00:00:00 2001
793dd5
From: Peter Jones <pjones@redhat.com>
793dd5
Date: Wed, 9 Aug 2017 17:31:31 -0400
793dd5
Subject: [PATCH 28/29] rpm: Make the client signer use the fedora values
793dd5
 unless overridden
793dd5
793dd5
Signed-off-by: Peter Jones <pjones@redhat.com>
793dd5
---
793dd5
 src/macros.pesign | 9 ++++++---
793dd5
 1 file changed, 6 insertions(+), 3 deletions(-)
793dd5
793dd5
diff --git a/src/macros.pesign b/src/macros.pesign
793dd5
index 69280e9..22a3ee6 100644
793dd5
--- a/src/macros.pesign
793dd5
+++ b/src/macros.pesign
793dd5
@@ -9,6 +9,9 @@
793dd5
 %__pesign_token %{nil}%{?pe_signing_token:-t "%{pe_signing_token}"}
793dd5
 %__pesign_cert %{!?pe_signing_cert:"Red Hat Test Certificate"}%{?pe_signing_cert:"%{pe_signing_cert}"}
793dd5
 
793dd5
+%__pesign_client_token %{!?pe_signing_token:"Fedora Signer (OpenSC Card)"}%{?pe_signing_token:"%{pe_signing_token}}
793dd5
+%__pesign_client_cert %{!?pe_signing_cert:"/CN=Fedora Secure Boot Signer"}%{?pe_signing_cert:"%{pe_signing_cert}}
793dd5
+
793dd5
 %_pesign /usr/bin/pesign
793dd5
 %_pesign_client /usr/bin/pesign-client
793dd5
 
793dd5
@@ -41,11 +44,11 @@
793dd5
                  --certdir ${nss} -c signer %{-o}			\
793dd5
       rm -rf ${sattrs} ${sattrs}.sig ${nss}				\
793dd5
     elif [ -S /var/run/pesign/socket ]; then				\
793dd5
-      %{_pesign_client} -t %{__pesign_token}				\\\
793dd5
-                        -c %{__pesign_cert}				\\\
793dd5
+      %{_pesign_client} -t %{__pesign_client_token}			\\\
793dd5
+                        -c %{__pesign_client_cert}			\\\
793dd5
                         %{-i} %{-o} %{-e} %{-s} %{-C}			\
793dd5
     else								\
793dd5
-      %{_pesign} -t %{__pesign_token} -c %{__pesign_cert}		\\\
793dd5
+      %{_pesign} %{__pesign_token} -c %{__pesign_cert}			\\\
793dd5
 		 --certdir ${_pesign_nssdir}				\\\
793dd5
                  %{-i} %{-o} %{-e} %{-s} %{-C}				\
793dd5
     fi									\
793dd5
-- 
793dd5
2.13.4
793dd5