alxwolf / ubios-cert

Manage SSL / TLS certificates with acme.sh (Let's Encrypt, ZeroSSL) for Ubiquiti UbiOS firmwares
MIT License
170 stars 20 forks source link

Cloudflare not registrering - api not applied correctly #40

Closed JeroenTuinstra closed 1 year ago

JeroenTuinstra commented 1 year ago

Tried to use Cloudflare to receive the certificate. Have been able to do this on a windows machine with winacme.exe. Each initial run ends with an error:

[Mon Feb  6 16:06:41 CET 2023] invalid domain
[Mon Feb  6 16:06:41 CET 2023] Error add txt for domain:_acme-challenge.udm.adventist.be
[Mon Feb  6 16:06:41 CET 2023] Please check log file for more details: /mnt/data/ubios-cert/acme.sh/acme.sh.log

In the log you can see it querying for the root domain and getting nowhere:

[Mon Feb  6 16:06:39 CET 2023] h='adventist.be'
[Mon Feb  6 16:06:39 CET 2023] zones?name=adventist.be&account.id=xxxxAccountIDxxxx
[Mon Feb  6 16:06:39 CET 2023] GET
[Mon Feb  6 16:06:39 CET 2023] url='https://api.cloudflare.com/client/v4/zones?name=adventist.be&account.id=xxxxAccountIDxxxx'
[Mon Feb  6 16:06:39 CET 2023] timeout=
[Mon Feb  6 16:06:39 CET 2023] _CURL='curl --silent --dump-header /mnt/data/ubios-cert/acme.sh/http.header  -L  -g '
[Mon Feb  6 16:06:40 CET 2023] ret='0'

When entering https://api.cloudflare.com/client/v4/zones?name=adventist.be&account.id=xxxxAccountIDxxxx in a browser the following error from the api of cloudflare is returned:

{"success":false,"errors":[{"code":9106,"message":"Missing X-Auth-Email header"},{"code":9107,"message":"Missing X-Auth-Key header"}],"messages":[],"result":null}

So I guess there is some information not sent to cloudflare, or cloudflare has updated its api calls?

JeroenTuinstra commented 1 year ago

Just ignore this issue. It worked after de-installation and de-registration.