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
cae203be
Commit
cae203be
authored
Oct 28, 2016
by
neilpang
Browse files
fix thumbprint
parent
8a29fbc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
cae203be
...
@@ -2109,8 +2109,6 @@ _regAccount() {
...
@@ -2109,8 +2109,6 @@ _regAccount() {
while
true
;
while
true
;
do
do
_debug AGREEMENT
"
$AGREEMENT
"
_debug AGREEMENT
"
$AGREEMENT
"
accountkey_json
=
$(
printf
"%s"
"
$jwk
"
|
tr
-d
' '
)
thumbprint
=
$(
printf
"%s"
"
$accountkey_json
"
| _digest
"sha256"
| _urlencode
)
regjson
=
'{"resource": "'
$_reg_res
'", "agreement": "'
$AGREEMENT
'"}'
regjson
=
'{"resource": "'
$_reg_res
'", "agreement": "'
$AGREEMENT
'"}'
...
@@ -2348,8 +2346,8 @@ issue() {
...
@@ -2348,8 +2346,8 @@ issue() {
_savedomainconf
"Le_Keylength"
"
$Le_Keylength
"
_savedomainconf
"Le_Keylength"
"
$Le_Keylength
"
vlist
=
"
$Le_Vlist
"
vlist
=
"
$Le_Vlist
"
# verify each domain
_info
"
Verify
each domain"
_info
"
Getting domain auth token for
each domain"
sep
=
'#'
sep
=
'#'
if
[
-z
"
$vlist
"
]
;
then
if
[
-z
"
$vlist
"
]
;
then
alldomains
=
$(
echo
"
$Le_Domain
,
$Le_Alt
"
|
tr
','
' '
)
alldomains
=
$(
echo
"
$Le_Domain
,
$Le_Alt
"
|
tr
','
' '
)
...
@@ -2380,7 +2378,12 @@ issue() {
...
@@ -2380,7 +2378,12 @@ issue() {
_on_issue_err
_on_issue_err
return
1
return
1
fi
fi
if
[
-z
"
$thumbprint
"
]
;
then
accountkey_json
=
$(
printf
"%s"
"
$jwk
"
|
tr
-d
' '
)
thumbprint
=
$(
printf
"%s"
"
$accountkey_json
"
| _digest
"sha256"
| _urlencode
)
fi
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'[^\{]*"type":"'
$vtype
'"[^\}]*'
)
"
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'[^\{]*"type":"'
$vtype
'"[^\}]*'
)
"
_debug entry
"
$entry
"
_debug entry
"
$entry
"
if
[
-z
"
$entry
"
]
;
then
if
[
-z
"
$entry
"
]
;
then
...
@@ -2394,7 +2397,7 @@ issue() {
...
@@ -2394,7 +2397,7 @@ issue() {
uri
=
"
$(
printf
"%s
\n
"
"
$entry
"
| _egrep_o
'"uri":"[^"]*'
|
cut
-d
:
-f
2,3 |
tr
-d
'"'
)
"
uri
=
"
$(
printf
"%s
\n
"
"
$entry
"
| _egrep_o
'"uri":"[^"]*'
|
cut
-d
:
-f
2,3 |
tr
-d
'"'
)
"
_debug uri
$uri
_debug uri
$uri
keyauthorization
=
"
$token
.
$thumbprint
"
keyauthorization
=
"
$token
.
$thumbprint
"
_debug keyauthorization
"
$keyauthorization
"
_debug keyauthorization
"
$keyauthorization
"
...
...
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