cd_openssl

This commit is contained in:
Marc Beninca 2024-06-08 12:18:39 +02:00
parent 891d3a4067
commit 99af49e1a8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -668,9 +668,12 @@ cd_open () {
} }
cd_openssl () { cd_openssl () {
local file="${1}" cd_openssl__file="${1}"
if [ -f "${file}" ] ; then if [ -f "${cd_openssl__file}" ] ; then
openssl x509 -noout -text -in "${file}" || exit openssl x509 \
-in "${cd_openssl__file}" \
-noout -text \
|| exit
fi fi
} }