]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update nonce calculation to use acme.sh methods instead of openssl
authorMaarten den Braber <m@mdbraber.com>
Tue, 19 May 2020 14:38:23 +0000 (16:38 +0200)
committerMaarten den Braber <m@mdbraber.com>
Tue, 19 May 2020 14:38:23 +0000 (16:38 +0200)
command

dnsapi/dns_transip.sh

index b5cea51b1a9d11e271fd1fade9a8c799259ace53..8764c1c49e107b044bc74909cd4e8924a16d66db 100644 (file)
@@ -93,7 +93,7 @@ _transip_rest() {
 }
 
 _transip_get_token() {
-  nonce=$(openssl rand -hex 12)
+  nonce=$(echo "TRANSIP$(_time)" | _digest sha1 hex)
 
   data="{\"login\":\"${TRANSIP_Username}\",\"nonce\":\"${nonce}\",\"read_only\":\"${TRANSIP_Token_Read_Only}\",\"expiration_time\":\"${TRANSIP_Token_Expiration}\",\"label\":\"${TRANSIP_Token_Label}\",\"global_key\":\"${TRANSIP_Token_Global_Key}\"}"
   _debug data "$data"