mirror of
https://github.com/anikeen-com/acme.sh.git
synced 2026-11-01 13:29:07 +00:00
read csr with empty subject
https://github.com/acmesh-official/acme.sh/issues/4024
This commit is contained in:
1 parent
c31027b284
commit
4d89ce5d50
1 file changed
+4
-1
@@ -5543,10 +5543,13 @@ showcsr() {
|
|||||||
_initpath
|
_initpath
|
||||||
|
|
||||||
_csrsubj=$(_readSubjectFromCSR "$_csrfile")
|
_csrsubj=$(_readSubjectFromCSR "$_csrfile")
|
||||||
if [ "$?" != "0" ] || [ -z "$_csrsubj" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
_err "Can not read subject from csr: $_csrfile"
|
_err "Can not read subject from csr: $_csrfile"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
if [ -z "$_csrsubj" ]; then
|
||||||
|
_info "The Subject is empty"
|
||||||
|
fi
|
||||||
|
|
||||||
_info "Subject=$_csrsubj"
|
_info "Subject=$_csrsubj"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user