Support AWS Route53 api

This commit is contained in:
neilpang
2016-11-20 22:57:07 +08:00
parent 5a7b7b51c5
commit e009ec8b93
3 changed files with 239 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ _me_rest() {
_debug "$ep"
cdate=$(date -u +"%a, %d %b %Y %T %Z")
hmac=$(printf "%s" "$cdate" | _hmac sha1 "$ME_Secret" 1)
hmac=$(printf "%s" "$cdate" | _hmac sha1 "$(_hex "$ME_Secret")" hex)
_H1="x-dnsme-apiKey: $ME_Key"
_H2="x-dnsme-requestDate: $cdate"