Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e593d86b
Commit
e593d86b
authored
Feb 06, 2017
by
neil
Committed by
GitHub
Feb 06, 2017
Browse files
Merge pull request #590 from Neilpang/dev
minor, output thumbprint
parents
d1190feb
339a8ad6
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
e593d86b
...
@@ -2489,6 +2489,10 @@ __calcAccountKeyHash() {
...
@@ -2489,6 +2489,10 @@ __calcAccountKeyHash() {
[
-f
"
$ACCOUNT_KEY_PATH
"
]
&&
_digest sha256 <
"
$ACCOUNT_KEY_PATH
"
[
-f
"
$ACCOUNT_KEY_PATH
"
]
&&
_digest sha256 <
"
$ACCOUNT_KEY_PATH
"
}
}
__calc_account_thumbprint
()
{
printf
"%s"
"
$jwk
"
|
tr
-d
' '
| _digest
"sha256"
| _url_replace
}
#keylength
#keylength
_regAccount
()
{
_regAccount
()
{
_initpath
_initpath
...
@@ -2579,6 +2583,8 @@ _regAccount() {
...
@@ -2579,6 +2583,8 @@ _regAccount() {
return
1
return
1
fi
fi
fi
fi
ACCOUNT_THUMBPRINT
=
"
$(
__calc_account_thumbprint
)
"
_info
"ACCOUNT_THUMBPRINT"
"
$ACCOUNT_THUMBPRINT
"
return
0
return
0
done
done
...
@@ -2810,8 +2816,7 @@ issue() {
...
@@ -2810,8 +2816,7 @@ issue() {
fi
fi
if
[
-z
"
$thumbprint
"
]
;
then
if
[
-z
"
$thumbprint
"
]
;
then
accountkey_json
=
$(
printf
"%s"
"
$jwk
"
|
tr
-d
' '
)
thumbprint
=
"
$(
__calc_account_thumbprint
)
"
thumbprint
=
$(
printf
"%s"
"
$accountkey_json
"
| _digest
"sha256"
| _url_replace
)
fi
fi
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'[^\{]*"type":"'
$vtype
'"[^\}]*'
)
"
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'[^\{]*"type":"'
$vtype
'"[^\}]*'
)
"
...
...
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