Closed kopax closed 6 years ago
The configuration file for GANDI CLI in $HOME/.config/gandi/config.yaml should begin with:
api:
host: https://rpc.gandi.net/xmlrpc/
key: YYYYYYYYYYYYYYYYYYYYYY
apirest:
key: XXXXXXXXXXXXXXXXXXXXXX
Your entry host
and key
may be mixup as the regexp seems to be used for key pre-validation.
Hi @aegiap that was that.
I have looked at the documentation and I messed up with APIREST_KEY
and API_KEY
when I was working in last january. When I worked again I messed up again.
The documentation doesn't say where to generate each and for what feat exactly one should be use.
I have generated a new unique API key at https://account.gandi.net/fr/users/kopax/security/apikey and the old one is still working.
I also had to edit my source code to replace APIREST_KEY=${value}
with API_KEY=${value}
, but this was working before so I may have set both or one was picked up by the program. In all case I messed up and I don't know how to reconcile.
I think it's now ok, we can close the issue
Hi everyone.
I have a small script that used to create the certificate from Gandi.
The script is today failing with
Error: Gandi API has returned an error: <Fault 500037: "Error on object : OBJECT_UNKNOWN (CAUSE_BADPARAMETER) [string 'https://rpc.gandi.net/xmlrpc' does not match '^[a-z0-9]{24}$']">
I have decided to install gandi.cli on my host and reproduce. The error is also happening when I do:
Any Idea how to fix that? I have to renew certs before 29th of september and we want to do it from command line.