-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Subdomains: Error requesting challenges #6
Comments
Im also curious if your script (and tutorial) will adapt to the wildcard ssl certificates, that Lets encrypt will offer from january '18 on. Maybe there is a way to automate the DNS challenge as well? |
I can't talk about the DNS challenge right now, but yes, I will try to adapt to the wildcard when it's available. |
Problem: How did you create the CSR? |
Thank you for your quick answer. ( Also for the info on wildcard ;-) ) Now I'm going to go through the process live and describe step by step how I create the CSR:
At first I did not recognize the "/x0D" extension in the log file and the CN. Now I can say, it happens also when I create new dom.key, dom.list and dom.csr files. |
use notepad++ or geany, the carriage return is definitely a problem. Please use dos2unix dom.list
dos2unix gencsr.conf
#then create the csr again
./gencsr |
Thank you again for your answer. I will try that out soon. Since I have some troubles with installing dos2unix on my bash now, i will have to fix that at first. That might take a while. But when I managed to do so, I will give you an update. |
Luckily, I solved bash's internet connectivity issue by simply adding a google name server (8.8.8.8) in it's resolve.conf When I ran the cron-job, I was very surprised when I looked into the log file. First of all, the "/x0D" extension was gone! A quick "Yeay!" for having solved that problem. However, I have another problem now. Then I tested something. Basically, the whole certification process still works. I am able to get a certificate for example.com, by using the classic "/.well-known/acme-challenge" directory as acme-dir. But only when I am not using the "challenge.example.com" subdomain-workaround.
I am going to set up another clean workaround soon. Until then, if you see some other "core problems" (like the one with the carriage-return; shame on me), let me know. Greetings! |
your challenge.example.com is in http, right? it must not redirect to https version ... |
Good Point! Guess what, you're right again. SSL certificates and redirections were likely involved in the reported crash of my previously working workaround setup. I collected two plausible causes. I am very happy to say, that I managed to install SSL-certificates on multiple subdomains now. Feels like a christmas present. Yihaaaa! (Thank you so much for your advices, your tutorials, your wisdom). 1. I manually deinstalled the SSL certificate on challenge.example.com (again..).
4. I also inserted the proper workaround challenge/challenge directory into the .json file and into the renewcert file again. Now I have SSL-certificates on:
However, Im stuck again :D The certification process still fails, when I try to certificate the following subdomains:
The Log says for example:
I think I am not able to certificate those last four domains, because it's my hosting provider who has the proper control over them. Is there any way, in which I can still add them into the certificate? |
Seems like your CSR does not include those subdomains. Recreating the CSR including those subdomains may help |
Hi! Thank you for your tutorial. I followed all steps. It worked for my main domain! Thank you! but I have troubles with my subdomains.
I was using your method described in 3.3 by using a challenge subdomain and redirecting all the acme-challenge traffic to my new challenge subdomain via htaccess. After some troubleshooting I was able to have a fully functional automated CRON Job for renewing my SSL certificate on my example.com website.
While its working with my naked domain, However, I get an Error during the process for my subdomain (the www. version). I have to note, that Im on a shared hosting provider. In order to fix the problem, I tried out to create a json in the letsacme folder saying that my global acme-dir would be my challenge/challenge directory. I was using the suggested piece of code in the description. The problem persits tough.
It looks like this. In my letsacme.log it says:
Logs for letsacme script
Parsing account key...
Parsed!
Parsing CSR...
CN: example.com\x0D
Parsed!
Registering account...
Already registered!
Verifying example.com
,DNS:www.example.com
I know it looks similar to this issue:
#1
But I have no shell access, the script generally works but only not for my subdomains. plus it seems to fail at an earlier stage (requesting challenges). So unfortunately, the solution for the other issue does not seem to help me. But its interesting that i share the fact, that there appears to be a 400 Error (whatever that means in my case).
I made sure that:
The problem is not only affecting the www. version, but every other subdomain (including mail.example.com). I came to a point where I need help in order to fix this problem. I looking forward to hear from you.
Greetings
The text was updated successfully, but these errors were encountered: