diff --git a/zsh.d/zshfunctions/x509 b/zsh.d/zshfunctions/x509 index 3fe7f8c..f900051 100644 --- a/zsh.d/zshfunctions/x509 +++ b/zsh.d/zshfunctions/x509 @@ -1,6 +1,7 @@ usage() { echo "x509 " echo "x509 -r " + return 0 } [ $# -eq 0 ] && usage @@ -18,6 +19,6 @@ while getopts ":hr:" arg; do ;; esac done -[ $help -eq 1 ] && usage && return 0 +[ $help -eq 1 ] && usage [ $remote -eq 0 ] && openssl x509 -in $* -noout -text [ $remote -eq 1 ] && openssl s_client -connect $host < /dev/null | openssl x509 -noout -text