mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-09 16:01:46 +00:00
replace with functions defined in acme.sh
This commit is contained in:
parent
d2a60f3ca4
commit
4ec39ab707
@ -72,7 +72,7 @@ qiniu_deploy() {
|
|||||||
update_access_token="$(_make_sslcreate_access_token "$update_path")"
|
update_access_token="$(_make_sslcreate_access_token "$update_path")"
|
||||||
_debug update_access_token "$update_access_token"
|
_debug update_access_token "$update_access_token"
|
||||||
export _H1="Authorization: QBox $update_access_token"
|
export _H1="Authorization: QBox $update_access_token"
|
||||||
update_response=$(_post "$update_body" "$QINIU_API_BASE$update_body" 0 "PUT" "application/json" | _dbase64 "multiline")
|
update_response=$(_post "$update_body" "$QINIU_API_BASE$update_path" 0 "PUT" "application/json" | _dbase64 "multiline")
|
||||||
|
|
||||||
err_response="error"
|
err_response="error"
|
||||||
if test "${update_response#*$err_response}" != "$update_response"; then
|
if test "${update_response#*$err_response}" != "$update_response"; then
|
||||||
@ -88,7 +88,6 @@ qiniu_deploy() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_make_sslcreate_access_token() {
|
_make_sslcreate_access_token() {
|
||||||
_data="$1\\n"
|
_token="$(printf "%s\\n" "$1" | _hmac "sha1" "$(printf "%s" "$Le_Deploy_Qiniu_SK" | _hex_dump | tr -d " ")" | _base64)"
|
||||||
_token="$(printf "%s" "$_data" | openssl sha1 -hmac "$Le_Deploy_Qiniu_SK" -binary | openssl base64 -e)"
|
|
||||||
echo "$Le_Deploy_Qiniu_AK:$_token"
|
echo "$Le_Deploy_Qiniu_AK:$_token"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user