Skip to content

Commit

Permalink
read csr with empty subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Apr 20, 2022
1 parent c31027b commit 4d89ce5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acme.sh
Expand Up @@ -5543,10 +5543,13 @@ showcsr() {
_initpath

_csrsubj=$(_readSubjectFromCSR "$_csrfile")
if [ "$?" != "0" ] || [ -z "$_csrsubj" ]; then
if [ "$?" != "0" ]; then
_err "Can not read subject from csr: $_csrfile"
return 1
fi
if [ -z "$_csrsubj" ]; then
_info "The Subject is empty"
fi

_info "Subject=$_csrsubj"

Expand Down

0 comments on commit 4d89ce5

Please sign in to comment.