From 636f53713b29cb70fb611c320fa6b2de12e68c64 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 23:35:16 +0200 Subject: [PATCH] spcd_openssl_x509 --- spcd/main.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 6481aa0..4ff3caa 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -1036,7 +1036,7 @@ spcd_write_ca_certificates() { spcd_wcc__path="${SPCD_CA_ROOT}/${spcd_wcc__index}.crt" spcd_split spcd_os_write "${spcd_wcc__path}" "${spcd_wcc__text}" - spcd_openssl "${spcd_wcc__path}" + spcd_openssl_x509 "${spcd_wcc__path}" done } @@ -1232,13 +1232,12 @@ spcd_install_package() { fi } -spcd_openssl() { - spcd_openssl__file="${1}" - if [ -f "${spcd_openssl__file}" ]; then +spcd_openssl_x509() { + spcd_openssl_x509__file="${1}" + if [ -f "${spcd_openssl_x509__file}" ]; then openssl x509 \ - -in "${spcd_openssl__file}" \ - -noout -text || - exit + -in "${spcd_openssl_x509__file}" \ + -noout -text fi }