mirror of
https://github.com/anikeen-com/acme.sh.git
synced 2026-11-01 21:39:06 +00:00
check invalid subject cn in the csr
fix https://github.com/Neilpang/acme.sh/issues/805
This commit is contained in:
1 parent
b963dadc14
commit
2c9ed4c565
1 file changed
+4
@@ -3940,6 +3940,10 @@ signcsr() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_debug _csrsubj "$_csrsubj"
|
_debug _csrsubj "$_csrsubj"
|
||||||
|
if _contains "$_csrsubj" ' ' || ! _contains "$_csrsubj" '.'; then
|
||||||
|
_info "It seems that the subject: $_csrsubj is not a valid domain name. Drop it."
|
||||||
|
_csrsubj=""
|
||||||
|
fi
|
||||||
|
|
||||||
_csrdomainlist=$(_readSubjectAltNamesFromCSR "$_csrfile")
|
_csrdomainlist=$(_readSubjectAltNamesFromCSR "$_csrfile")
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user