spcd_openssl_x509

This commit is contained in:
Marc Beninca 2024-08-25 23:35:16 +02:00
parent f3f19abad0
commit 636f53713b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1036,7 +1036,7 @@ spcd_write_ca_certificates() {
spcd_wcc__path="${SPCD_CA_ROOT}/${spcd_wcc__index}.crt" spcd_wcc__path="${SPCD_CA_ROOT}/${spcd_wcc__index}.crt"
spcd_split spcd_split
spcd_os_write "${spcd_wcc__path}" "${spcd_wcc__text}" spcd_os_write "${spcd_wcc__path}" "${spcd_wcc__text}"
spcd_openssl "${spcd_wcc__path}" spcd_openssl_x509 "${spcd_wcc__path}"
done done
} }
@ -1232,13 +1232,12 @@ spcd_install_package() {
fi fi
} }
spcd_openssl() { spcd_openssl_x509() {
spcd_openssl__file="${1}" spcd_openssl_x509__file="${1}"
if [ -f "${spcd_openssl__file}" ]; then if [ -f "${spcd_openssl_x509__file}" ]; then
openssl x509 \ openssl x509 \
-in "${spcd_openssl__file}" \ -in "${spcd_openssl_x509__file}" \
-noout -text || -noout -text
exit
fi fi
} }