-
Notifications
You must be signed in to change notification settings - Fork 1
Selfhost dns api dev talk #1
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
Comments
Hey, this works great. Thanks for adding selfhost support! |
Thanks, I will add it to all docs and comments. I never tried to use the mail :) |
Hey, today I notices one thing about the RIDs, when testing around.
After the creation I deployed them to my Synology DSM and then wanted to test an automatic renewal of all domains. The renewal of the first certificate now failed cause the _acme-challenge wasnt successfull. The reason is, that the SELFHOST entries are stored in the account.conf, so the issueing of the second domain with RIDs 21 + 22 overrode the RIDs 11 + 12, so only the renewal of the last domain would be working. Is this intented? |
Have the Synology a GUI for configuring ACME.sh? I pass the
|
No there is no gui for acme in dsm. I only use the functions from acme.sh (running in docker). Maybe I got something wrong in my test. Just for clarification: Cause when it is needed after there is the discribed behavior. Steps from a configuration without any present certificates and exports (if Docker Container restarts, all exports are cleared and only read from confs):
-> test1.example.de will be passed RID=21, RID2=22 as it is the last configuration, but these are the IDs of "test2.example.de" so the challenge will fail |
Hi, i had problems while using the SELFHOSTDNS_MAP. On issuing a cert (test.example.de + testsub1.example.de) i get the error: "tr: range-endpoints of 'e-c' are in reverse collating sequence order" and the RID is not taken from the MAP. On debugging the line "rid=$(echo "$SELFHOSTDNS_MAP" | grep -Eoi "$domain:(\d+)" | tr -d "$domain:")" i found some problems:
I implemented and tested a fix for the usecases i found. Mayby you can check the changes and validate (especially with the plugins). |
Thanks. Which distribution do you use? |
The Docker container from dockerhub / build from Dockerfile (fork) on Linux (Synology DSM) |
@AlvinSchiller can you try my pending change on your docker container? |
Where have you made the changes? I don't see any and got no notification. |
@AlvinSchiller I commented directly to the code in your PR. Can you try the following, in your docker container:
|
@Marvo2011 ok very strange that i dont see any comments. Are there settings to the PR that must be activated? |
@Marvo2011 regarding the pending change: I did some reading and most likely you started a review? In that case you must complete the review so the comments will be published. |
@AlvinSchiller it's strange I have complete it. Now there are removed. But no problem |
Please report bugs here: acmesh-official#4291 |
I have problems use selfHOST and dns_selfhost. DNS record are set correct. dig _acme-challenge.xxxxx show correct content, but acme.sh is in loop. Only cancel is possible. |
@ralhako can you post your log? You can replace your domain with xxx etc... |
10/20s are very short I use the original 2min, what does the curl request on cloudflare ? |
No problem, I also speak German 😅 I will check the cloudflare request tomorrow. I think it is only a DNS request over a HTTP/Rest API. But for me it was new that the log includes the request by let's encrypt. Do you use also a opnsense ? |
No use/install of opnsense. I use get_acme.sh. Transfer form root to home. Change acme.sh.env to: export LE_WORKING_DIR="/home/.acme.sh/cert" alias acme.sh="/home/.acme.sh/acme.sh". Set acme.sh --set-default-ca --server letsencrypt. And try the first domain - after 5 Error I get: :: too many failed authorizations. Now I use --test with an other domain. |
@ralhako Do you move your domain yesterday from United-Domains to selfhost DNS? Such DNS moves can take some time (~24h), please try the acme request again. |
No move from United-Domains, but an update to DNS DYNAMIC to change TTL to 1 minute instead of 1 hour. If 24 hours have passed I will test and report. |
It did not work. Try with acme.sh --issue --test --log -d ccccccccc.com -d *.ccccccccc.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please will work. |
@ralhako ccccccccc.com is your replaced domain? Seams that Lets Encrypt can't get your actual DNS Records: Same for the cloudflare-dns option. Cloudflare is used to prevent failed request to the Lets Encrypt API. Can you try to check the DNS with dig at Cloudflare itself? EDIT: To check it with the real API use: |
dig and curl is ok, but same error: https://cardinizer.com/public/acme-challenge.ccccccccc_20230605.txt |
@ralhako very strange, which distro and version do you use? Is this a local machine or a vm by selfhost? Do you use any firewall which redirects DNS? |
Hello Marvo2011, |
Is use of a modified version of your dns_selfhost as dns_checkipnet allowed, feasible, approved?: https://checkip.net/getmyowndyndns/ |
I have no problem, when some one want to use the code from dns_selfhost. It's open source and ok to use it for any one and for any project. |
Please Report all bugs to selfhost dns api here:
acmesh-official#4291
Usage:
Note: For
username
you have to use your account / customer number. You can find them in any invoice or on the right top of the selfhost dashboard.The text was updated successfully, but these errors were encountered: