acme.sh
acme.sh copied to clipboard
Fix for (broken) KASAPI by all-inkl.com
Hi,
I'm using the KASAPI by all-inkl.com. Unfortunately the current version is not working anyomore since a few weeks. I tested those modifications and they do work as expected.
This pull request is a complete overhaul in regards of the API calls. It's not using the test form anymore, it now depends on the official API documentation.
If there are any questions, feel free to ask.
Kind regards Hobby
github Actions fail and I have no idea why. deployed the fix to several machines over the day and they all work smooth. will try again in a few days.
EDIT: all-inkl.com has implemented some kind of waiting time between the requests. Perhaps those github actions are trying too fast...
Hi Hobby I checked your implementation and see that you are still using Username and password for every request. So this could be caused some problems. So you need to use the session token. I think we both have the same problem (reported here -> https://github.com/acmesh-official/acme.sh/issues/4215) with the timeouts. The complete code to use the SOAP API with session token can be found here: [Marco4223/acme.sh -> dns_kas.sh] I'm just waiting for answeres from Nail befor I comit my code. Cheers MarcO
please rebase to the latest dev branch. and define a secret DEBUG=2 in your repo, it will output more debug info.
Hi Hobby I checked your implementation and see that you are still using Username and password for every request. So this could be caused some problems. So you need to use the session token. I think we both have the same problem (reported here -> #4215) with the timeouts. The complete code to use the SOAP API with session token can be found here: [Marco4223/acme.sh -> dns_kas.sh] I'm just waiting for answeres from Nail befor I comit my code. Cheers MarcO
the documentation states, that one can use either the session token or just user/password on every request. I will try to debug the github actions like @Neilpang described.
please rebase to the latest dev branch. and define a secret
DEBUG=2in your repo, it will output more debug info.
did so. Running the Actions is very slow and makes debugging hard. For now it always fails inside "Docker" at centos 7. Sometimes a TXT record gets added but most of the time the requests timeout.
EDIT: checked again. ubuntu and debian do need approx 3 minutes to complete (combined) and centos itself is running over 20 minutes with hardly updating the output. Even if it is slow, I managed to get it passed. Nevertheless now it timeouts at different OS. Something between those github actions and the API server is not running as expected. Perhaps the API server is dropping/blocking connections (some kind of DDoS or other attack prevention) or the github actions are currently too stressed (like too many projects are using them)?
@Neilpang tried it, but it seems that the github actions won't work atm with the KASAPI. Failures are always curl timeouts. The changes are working in several production environments. Changed a few things while testing github actions and implemented better error handling.
merged by https://www.youtube.com/watch?v=d02moVs-ffk&list=PL9K8ksI6u303Jp5oT2CmC-Qu7gIfrb-S1