Add Aliyun SLB Deploy

This commit is contained in:
lilj 2017-11-03 14:45:32 +08:00 committed by GitHub
parent 4a0b972b39
commit 1de1dcad87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/bash
######## Public functions #####################
#domain keyfile certfile cafile fullchain
Ali_Region="cn-hangzhou"
#Ali_Region="cn-hangzhou"
#Ali_Api_Key=""
#Ali_Api_Secret=""
Ali_Api="https://slb.aliyuncs.com/"
@ -31,6 +31,7 @@ ali_slb_deploy() {
return 0
}
######## Private functions #####################
_ali_rest() {
signature=$(printf "%s" "GET&%2F&$(_ali_urlencode "$query")" | _hmac "sha1" "$(printf "%s" "$Ali_Api_Secret&" | _hex_dump | tr -d " ")" | _base64)