cd_openssl
This commit is contained in:
parent
891d3a4067
commit
99af49e1a8
1 changed files with 6 additions and 3 deletions
9
cd.sh
9
cd.sh
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue