Skip to content

Report bugs to Active24.cz dns api #2059

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

Open
Neilpang opened this issue Jan 25, 2019 · 23 comments
Open

Report bugs to Active24.cz dns api #2059

Neilpang opened this issue Jan 25, 2019 · 23 comments
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks

Comments

@Neilpang
Copy link
Member

report bugs to Active24.cz.

@Neilpang Neilpang added the 3rd party api report bugs to dns api, deploy hooks and notification hooks label Jan 25, 2019
@Neilpang
Copy link
Member Author

@MilanPala
please watch to this issue for future bugs.

@MilanPala
Copy link
Contributor

@Neilpang Thank you.

@bckp
Copy link

bckp commented Aug 2, 2024

Any plans for supporting V2 API?
From 1 November they are planing for migration of users to new platform with new Api V2 (https://rest.active24.cz/docs)

@MilanPala
Copy link
Contributor

@bckp Not from my side at this moment.

@litinoveweedle
Copy link

litinoveweedle commented Dec 7, 2024

Ok, the Active24 v1 API is dead from the time of the migration of my accounts to the "new" platform. They even deleted my API keys during the migration! For sure zero information was provided to the customers before migration, no information is in the Active24 knowledge base and support operators knows nada. What a great customer approach, just bunch of dilettantes.

Anyway as Active24 platform was migrated to the Websupport platform, there is slight chance that dns_websupport.sh might work, when overwriting default API URL:

WS_Api="https://rest.websupport.sk"

to the:

WS_Api="https://rest.active24.cz/"

As Active24 support do not know anything about this topic, I will test it and report back here. This is also supported with fact, that new Active24 API tokens have two parts - similar to the websupport API.

EDITED (multiple times, due to my mistakes): It works.

  1. Copy dns_websupport.sh over to the dns_active24.sh
  2. Edit dns_active24.sh change line WS_Api="https://rest.websupport.sk" to WS_Api="https://rest.active24.cz/"
  3. Create in the active24.cz administration new standard API key.
  4. Export obtained key export WS_ApiKey="XXXXXXXX-XXX-XXX-XXXXXX-XXXX"
  5. Export obtained secret export WS_ApiSecret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"`
  6. Run once the issue/renew command manually

@foxtrotcz
Copy link

foxtrotcz commented Dec 13, 2024

Not just Active24. Even Websupport is changing API. https://rest.websupport.sk/docs

Currently implemented is legacy V1 API. https://rest.websupport.sk/docs/v1.zone
New V2 API is not implemented. https://rest.websupport.sk/v2/docs

In summary both Active24 and Websupport are migrating to common V2 API.

@berycz
Copy link

berycz commented Dec 18, 2024

@litinoveweedle I had to also rename functions dns_websupport_add and dns_websupport_rm to dns_active24_add and dns_active24_rm, but then I'm still getting invalid domain. Did you do any other steps to make it work?

@litinoveweedle
Copy link

I think you did not read and followed my post correctly. I never renamed any functions!

@berycz
Copy link

berycz commented Dec 18, 2024

@litinoveweedle I did follow it, but I got It seems that your api file is not correct, it must have a function named: dns_active24_add, that's why I renamed it

  1. Copy dns_websupport.sh over to the dns_active24.sh

Do I understand it correctly that you replaced dnsapi/dns_active24.sh with the dnsapi/dns_websupport.sh?

@litinoveweedle
Copy link

Yep, you are probably correct, sorry. I can create PR for my changes later today, so you should be able to get my modified file and test it.

@litinoveweedle
Copy link

litinoveweedle commented Dec 22, 2024

Ok, please check here. I reached number of retry limits on Lets Encrypt when testing, so you have to try it yourself... ;-)

Also please change web root in your domain.conf to:

Le_Webroot='dns_active24_new'

This still uses v1 not v2 functions for the TXT record manipulation (same as in original dns_websupport.sh). I will check what can be done about that.

@berycz
Copy link

berycz commented Dec 23, 2024

Thanks, but I'm still getting invalid domain, I think I'm gonna switch to certbot, they support v2

@avvjunk
Copy link

avvjunk commented Jan 27, 2025

I have the same experience as berycz:
[Mon Jan 27 20:12:23 CET 2025] It seems that your API file is incorrect. Make sure it has a function named: dns_active24_add
[Mon Jan 27 20:12:23 CET 2025] Please add '--debug' or '--log' to see more information.
[Mon Jan 27 20:12:23 CET 2025] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

I also noticed that the acme documentation is already updated to the new situation where a key_id and key_secret must be used (https://github.com/acmesh-official/acme.sh/wiki/dnsapi#59-use-active24-api), but this actual dns_active24.sh script still refers to to old single api_token.

I found that when I pulled down a fresh clone from https://github.com/acmesh-official/acme.sh.git

Update: Apparently the update dns_active24.sh was not merged yet, so I also tried downloading the proposed change from here: https://github.com/acmesh-official/acme.sh/blob/8c77634feb030aa981907a5624b44108930ae6f3/dnsapi/dns_active24.sh.

I had a wait period of 1000 seconds to make sure the txt record would be ok. Everything seemed to work find at first, but the process failed at the end:
Pending. The CA is processing your order, please wait. (1/30)
Invalid status. Verification error details: Incorrect TXT record

@xvybihal
Copy link

@avvjunk please test the pr #6197 literally linked above your comment.

@avvjunk
Copy link

avvjunk commented Jan 27, 2025

@avvjunk please test the pr #6197 literally linked above your comment.

Sorry xnybihal, I must overlook something very obvious but I think I tested that. See my update.

The file I tested is https://github.com/acmesh-official/acme.sh/blob/8c77634feb030aa981907a5624b44108930ae6f3/dnsapi/dns_active24.sh. That is the correct one, right?

@xvybihal
Copy link

Debug log woud help. If the TXT was proprely added, but not propagated in 1000 seconds by the DNS provider, there is nothing I can do about that.

@avvjunk
Copy link

avvjunk commented Jan 28, 2025

@xvybihal: I understand. Since the TXT was properly added, there is nothing the dns_active24.sh script can do about the verification of it. I did several tests today and in all cases the TXT was created correctly. Normally I make certs for subdomains that include a wildecard. I tried that, also for my main domain and also just for my main domain without a wildcard. It all failed. For the subdomain I got the message that the TXT record did not exist (despite giving it also 1000 seconds):

  • Invalid status. Verification error details: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.sub.eample.org - check that a DNS record exists for this domain
    For my main domain I got this:
  • Invalid status. Verification error details: Incorrect TXT record

I'll do some additional testing later including collecting of debug data, but I do not have much time now.

All my test from today were on --server letsencrypt_test

One last question: It did work for you? Did you request certs for subdomains and/or wildcards?

@avvjunk
Copy link

avvjunk commented Jan 28, 2025

I think I found the problem, although I do not understand what happens.

This morning I tried a few times to request a certificate.

Now, about 6 hours later, I tried it again.

Before I started, I made sure that all TXT records for my domain where removed (in the Active24 WebUI).

When I started the acme script, I checked the TXT in the log. The value was tp9302tq9zXj1HxRZLtcFwFf5EJRUTCpjBbm1FVNfR0.

I then checked the Active24 WebUI again and the TXT record was created there. So far, so good.

Then I did a dig on a computer (and even network) that had never requested any _acme-challenge.example.com TXT before, so caching on my side can be excluded.

To my surprise I got this answer:

_acme-challenge.example.com. 3600 IN TXT "EnJseQFa84sAnsSQwcVw8-VzCGbQTLhqDYSe3sg-6s4"
_acme-challenge.example.com. 3600 IN TXT "bdQxyoMT4sPC2SZKxqjf6XF7eUYZ78lCsO2G3ZPTvHo"

As you can see, the values do not match the new TXT. Furthermore, I found that both values popped up in the logs of my tests from this morning. Even then the values were already wrong. So these values are not from my own tests from this morning but already older. Possibly even from before the migration of Active24 to the new platform.

@avvjunk
Copy link

avvjunk commented Jan 28, 2025

In case anyone has the same problem: I hopefully have the solution (have not tested yet):
I reached out to Active24 and they told me that my domain was still on their old nameservers as seen here:
https://dnschecker.org/#NS/example.com

Instructions to change that can be found here:
https://faq.active24.eu/knowledge-base/ns-records/

@xvybihal
Copy link

One last question: It did work for you? Did you request certs for subdomains and/or wildcards?

Yes, I use it in production. Works with all kinds of (sub)somains. I am glad you found the solution. I would not have guessed that they migrate customer to new system, but leave the NS (maybe you missed email notification about that and you forgot to do that? I could imagine active24 not wanting to change customers domain records without cusomers involvement).

@avvjunk
Copy link

avvjunk commented Jan 29, 2025

I just did another test which still did not work, but that does make sense. Yesterday during the chat with Active24, the agent mentioned that I was still on "the old nameservers". He would fix that for me. Only today I had time to look a the nameserver settings myself and found I still had "custom" nameservers selected, so the agent did not make the change for me after all. The names of these "custom" nameservers looked very must like Active24 nameservers (for instance alfa.ns.active24.cz). Apparently these were the "old" nameservers, because I never selected "custom" nameservers myself at any point in my Active24 account. There was a button to switch to the default nameservers (ns1.websupport.cz, ns2.websupport.cza ns3.websupport.eu). According to the documentation it will take 24 to 48 hours though to propagate "Changing the location of DNS records will be processed and updated at the registry in 24 to 48 hours."

Interesting enough I never received any message from Active24 that they were changing from "old" nameservers to new ones. The first time I heard about this, was during my chat with the agent yesterday.

In that light, the following quote from an email I received from Active24 about the transfer of my account is rather interesting "Whether you use nameservers (DNS) from us or another provider, nothing will change for you. Only in the latter case you may receive informational emails from the .CZ domain registry (nic.cz) about changes to your domain settings during the account transfer."

Clearly something did change for me....

Hopefully this will be solved in 24 to 48 hours. I created my own test TXT record that I regularly dig to see it if is resolved. At this moment it is not resolved yet, but that is to be expected.

If everything is working again, I will post a last update so other people with the same problem can benefit from it.

Many thanks to @xvybihal for your support.

@avvjunk
Copy link

avvjunk commented Jan 29, 2025

My last update: It works. :-) Much less than 24 - 48 hours. I noticed that the dig on my text TXT record started working after about 1 hour. After that the acme cert work as well.

@delavandaag
Copy link

delavandaag commented Jan 29, 2025

I edited the dns_active24.sh file by deleting the original content thereof and replacing it with the new one (I used the contents of this file: litinoveweedle@1f818b2). Editing was done in pfSense itself, in the GUI. After rebooting pfSense, I still get the old screen in the pfSense GUI, with only the field for the token and no fields for the API key and secret. I must be overlooking something, but have no clue for the moment. Can anyone help me out on this?

EDIT:
I was a bit sleepy and didn't realize that this isn't a specific pfSense forum/thread. For the time being and if someone faces the same issue: I solved my problem by inserting my ID and secret in the dns_active24.sh itself (just below Active24_Api="https://rest.active24.cz" in line 12 of this file (https://github.com/xvybihal/acme.sh/blob/dns_active24v2/dnsapi/dns_active24.sh), uncommented line 13 and 14 and changed those lines in export Active24_ApiKey="yourApiKeyWithoutQuotes" and export Active24_ApiSecret="yourApiSecretWithoutQuotes" respectively). Then I edited the pfSense GUI and left the field TOKEN empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks
Projects
None yet
Development

No branches or pull requests

9 participants