Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
674b5088
Commit
674b5088
authored
Mar 14, 2018
by
neilpang
Browse files
fix wildcard domains
parent
263c38ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
674b5088
...
@@ -3422,6 +3422,9 @@ issue() {
...
@@ -3422,6 +3422,9 @@ issue() {
_main_domain
=
$(
echo
"
$2
,
$3
"
|
cut
-d
,
-f
1
)
_main_domain
=
$(
echo
"
$2
,
$3
"
|
cut
-d
,
-f
1
)
_alt_domains
=
$(
echo
"
$2
,
$3
"
|
cut
-d
,
-f
2- |
sed
"s/,
${
NO_VALUE
}
$/
/"
)
_alt_domains
=
$(
echo
"
$2
,
$3
"
|
cut
-d
,
-f
2- |
sed
"s/,
${
NO_VALUE
}
$/
/"
)
fi
fi
_debug _main_domain
"
$_main_domain
"
_debug _alt_domains
"
$_alt_domains
"
_key_length
=
"
$4
"
_key_length
=
"
$4
"
_real_cert
=
"
$5
"
_real_cert
=
"
$5
"
_real_key
=
"
$6
"
_real_key
=
"
$6
"
...
@@ -3552,10 +3555,15 @@ issue() {
...
@@ -3552,10 +3555,15 @@ issue() {
if
[
"
$ACME_VERSION
"
=
"2"
]
;
then
if
[
"
$ACME_VERSION
"
=
"2"
]
;
then
#make new order request
#make new order request
_identifiers
=
"{
\"
type
\"
:
\"
dns
\"
,
\"
value
\"
:
\"
$_main_domain
\"
}"
_identifiers
=
"{
\"
type
\"
:
\"
dns
\"
,
\"
value
\"
:
\"
$_main_domain
\"
}"
for
d
in
$(
echo
"
$_alt_domains
"
|
tr
','
' '
)
;
do
while
true
;
do
if
[
"
$d
"
]
;
then
_w_index
=
1
_identifiers
=
"
$_identifiers
,{
\"
type
\"
:
\"
dns
\"
,
\"
value
\"
:
\"
$d
\"
}"
d
=
"
$(
echo
"
$$
_alt_domains"
|
cut
-d
,
-f
"
$_w_index
"
)
"
_w_index
=
"
$(
_math
"
$_w_index
"
+ 1
)
"
_debug d
"
$d
"
if
[
-z
"
$d
"
]
;
then
break
fi
fi
_identifiers
=
"
$_identifiers
,{
\"
type
\"
:
\"
dns
\"
,
\"
value
\"
:
\"
$d
\"
}"
done
done
_debug2 _identifiers
"
$_identifiers
"
_debug2 _identifiers
"
$_identifiers
"
if
!
_send_signed_request
"
$ACME_NEW_ORDER
"
"{
\"
identifiers
\"
: [
$_identifiers
]}"
;
then
if
!
_send_signed_request
"
$ACME_NEW_ORDER
"
"{
\"
identifiers
\"
: [
$_identifiers
]}"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment