From 39d3466d770ab41790f8df72be140621bfa95b1b Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Thu, 14 Mar 2024 00:24:36 -0600 Subject: [PATCH 1/3] silenced openssl x509 warning using -in --- make-ca | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make-ca b/make-ca index a7663be..31e2849 100644 --- a/make-ca +++ b/make-ca @@ -768,7 +768,8 @@ unset CERTBEGINLIST certbegin for tempfile in ${TEMPDIR}/certs/*.tmp; do # Convert to a PEM formated certificate printf $(awk '/^CKA_VALUE/{flag=1;next}/^END/{flag=0}flag{printf $0}' \ - "${tempfile}") | "${OPENSSL}" x509 -text -inform DER -fingerprint \ + "${tempfile}") > awkinputfile.awktmp + "${OPENSSL}" x509 -in awkinputfile.awktmp -text -inform DER -fingerprint \ > tempfile.crt # Get individual values for certificates @@ -806,6 +807,7 @@ for tempfile in ${TEMPDIR}/certs/*.tmp; do fi # Clean up the directory and environment as we go + rm -f awkinputfile.awktmp rm -f tempfile.crt unset keyhash subject count unset mozsadistrust mozsmdistrust anchorfile moz_trust From f6e93a3c8dcaf8994a016490fd3c82a132596971 Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Thu, 14 Mar 2024 01:15:18 -0600 Subject: [PATCH 2/3] removed temporary file creation and favor -in /dev/stdin --- help2man | 0 make-ca | 4 +--- 2 files changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 help2man mode change 100644 => 100755 make-ca diff --git a/help2man b/help2man old mode 100644 new mode 100755 diff --git a/make-ca b/make-ca old mode 100644 new mode 100755 index 31e2849..bf8b9dc --- a/make-ca +++ b/make-ca @@ -768,8 +768,7 @@ unset CERTBEGINLIST certbegin for tempfile in ${TEMPDIR}/certs/*.tmp; do # Convert to a PEM formated certificate printf $(awk '/^CKA_VALUE/{flag=1;next}/^END/{flag=0}flag{printf $0}' \ - "${tempfile}") > awkinputfile.awktmp - "${OPENSSL}" x509 -in awkinputfile.awktmp -text -inform DER -fingerprint \ + "${tempfile}") | "${OPENSSL}" x509 -in /dev/stdin -text -inform DER -fingerprint \ > tempfile.crt # Get individual values for certificates @@ -807,7 +806,6 @@ for tempfile in ${TEMPDIR}/certs/*.tmp; do fi # Clean up the directory and environment as we go - rm -f awkinputfile.awktmp rm -f tempfile.crt unset keyhash subject count unset mozsadistrust mozsmdistrust anchorfile moz_trust From 32bec7caad6ea0fe3f9f52a4d9f9f2b8ed1cf5ff Mon Sep 17 00:00:00 2001 From: Zeckmathederg Date: Thu, 14 Mar 2024 01:47:08 -0600 Subject: [PATCH 3/3] ran 'make clean' --- help2man | 0 make-ca | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 help2man mode change 100755 => 100644 make-ca diff --git a/help2man b/help2man old mode 100755 new mode 100644 diff --git a/make-ca b/make-ca old mode 100755 new mode 100644