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
2ea5b283
Commit
2ea5b283
authored
Nov 08, 2016
by
nytral
Committed by
neilpang
Nov 09, 2016
Browse files
_hmac use and generic date
parent
eb23549c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_me.sh
View file @
2ea5b283
...
...
@@ -123,8 +123,8 @@ _me_rest() {
data
=
"
$3
"
_debug
$ep
cdate
=
$(
date
-
R
u
)
hmac
=
$(
printf
"
$cdate
"
|
openssl dgst
-sha1
-hmac
$ME_Secret
|
cut
-d
=
-f
2 |
tr
-d
' '
)
cdate
=
$(
date
-u
+
"%a, %d %b %Y %T %Z"
)
hmac
=
$(
printf
"
$cdate
"
|
_hmac sha1
"
$ME_Secret
"
1
)
_H1
=
"x-dnsme-apiKey:
$ME_Key
"
_H2
=
"x-dnsme-requestDate:
$cdate
"
...
...
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