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

View file

@ -251,6 +251,19 @@ spcd_git_url() {
fi fi
} }
# ╭───────────┬─────────╮
# │ functions │ openssl │
# ╰───────────┴─────────╯
spcd_openssl_x509() {
spcd_openssl_x509__file="${1}"
if [ -f "${spcd_openssl_x509__file}" ]; then
openssl x509 \
-in "${spcd_openssl_x509__file}" \
-noout -text
fi
}
# ╭───────────┬────╮ # ╭───────────┬────╮
# │ functions │ os │ # │ functions │ os │
# ╰───────────┴────╯ # ╰───────────┴────╯
@ -1232,15 +1245,6 @@ spcd_install_package() {
fi fi
} }
spcd_openssl_x509() {
spcd_openssl_x509__file="${1}"
if [ -f "${spcd_openssl_x509__file}" ]; then
openssl x509 \
-in "${spcd_openssl_x509__file}" \
-noout -text
fi
}
#╶──────────────────────────────────────╴ #╶──────────────────────────────────────╴
# ╭──────╮ # ╭──────╮