acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

Gcore DNS API not working, "$" character is removed from the account.conf

Open kristoftorok opened this issue 1 year ago • 4 comments

Cannot issue certificates with Gcore DNS because the token is always invalid.
When exporting the variable, there is a "$" character that for some reason disappears from account.conf after the issue command:

Exporting the token:

image

After acme.sh --issue ... the contents of the account.conf:

image

I have tried manually editing account.conf to add the '$' character to the variable, but it is still removed after running the issue command.

Steps to reproduce

Try to issue any certificate with the Gcore DNS API

Debug log

acme.sh  --issue .....   --debug 2

[Mon Mar 25 20:40:27 UTC 2024] _CURL='curl --silent --dump-header /home/user/.acme.sh/http.header -L --trace-ascii /tmp/tmp.fjHO8fQGwC -g ' [Mon Mar 25 20:40:27 UTC 2024] ret='0' [Mon Mar 25 20:40:27 UTC 2024] response='{"error":"invalid or expired permanent token"}' [Mon Mar 25 20:40:27 UTC 2024] h='cloud' [Mon Mar 25 20:40:27 UTC 2024] zones/cloud [Mon Mar 25 20:40:27 UTC 2024] GET

kristoftorok avatar Mar 25 '24 20:03 kristoftorok

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

github-actions[bot] avatar Mar 25 '24 20:03 github-actions[bot]

So I tried several things.

First I tried to escape the "$" character: 123\$abc, it doesn't work, Then I encoded the token in base64 and decoded it in use, it doesn't work either.

The problem must be here somewhere because the G-core interface says the token was never used.

kristoftorok avatar Mar 26 '24 07:03 kristoftorok

So during export, the character escaping worked and I was able to generate the certificate. The "$" character is also in account.conf now.

image

But it only works the first time, after the second issue command, the same problem occurs as before. The "$" character will be deleted from account.conf and the token will be invalid.

kristoftorok avatar Mar 26 '24 08:03 kristoftorok

+1

moechs avatar Jun 23 '24 12:06 moechs

+1

danryd-ungapped avatar Sep 04 '24 12:09 danryd-ungapped

try again with dev

acme.sh  --upgrade -b dev

Neilpang avatar Sep 21 '24 15:09 Neilpang