Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
libDarkstreet opened this issue Mar 25, 2024 · 3 comments

Comments

@libDarkstreet
Copy link

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

Copy link

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.

@libDarkstreet
Copy link
Author

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.

@libDarkstreet
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant