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 }