-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
failed to obtain certificate #2510
Comments
Hi You will probably get better help for a setup question like this at our forum https://caddy.community Often issues like this are due to Network or site configuration issues. For example when I try to go to tv1.osuhickeys.ne I get a name cannot be resolved error suggesting there is an issue with where the DNS points. Also please provide the full error output, you seem to be missing some text fof the end. |
The URL is tv.domain.net. You were missing the "t" at the end. Pinging tv.domain.net [71.81.139.61] with 32 bytes of data: The log file it generates only contains one line: |
It looks like #2451 to me, as you've noted on that thread. Try with the Could also try the other workarounds listed in that thread, too. |
-disable-tls-alpn-challenge gave different error messages, but still does not launch. Not sure how I am trying to do this will even work. I copied my caddy folder from one machine to another and attempted to launch it. I probably need to download a clean copy, create new DNS entries, and then launch it. Guessing the cert is tied to a specific machine and it needs to be created from scratch with a new URL for it to work properly. I was able to get it working on Windows 10 build 1809 so do not really need to have this working on another machine to help troubleshoot that issues any longer so I will close this issue. Appreciate the help. |
Nope, fortunately, that's not correct -- the only thing that needs to be tied to that machine is the DNS records need to point to it. Looks simply like your DNS records were pointing to the wrong machines. |
Ah, I see what you are saying now. I was trying to test internally only so I never updated my port forward on my router to the test machine. Once I did that it now starts on the other machine. I did not realize the certificate validation needed communication back to the source machine making the request. I was guessing it just needed a valid DNS entry and external IP that responded. |
External communication is necessary by default, but enabling the DNS challenge does what you want: https://caddyserver.com/docs/automatic-https |
1. Which version of Caddy are you using (
caddy -version
)?Caddy 0.11.5 (non-commercial use only)
2. What are you trying to do?
Launch Caddy
3. What is your Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
From a DOS Command Prompt
5. Please paste any relevant HTTP request(s) here.
6. What did you expect to see?
Caddy running successfully and proxying requests
7. What did you see instead (give full error messages and/or log)?
Activating privacy features... 2019/03/08 22:00:39 [INFO] [tv1.osuhickeys.net] acme: Obtaining bundled SAN certificate
2019/03/08 22:00:40 [INFO] [tv.domain.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/yqmRGsrokocgvPVddyz9avh3w_kHH0RDodVAHtH3waE
2019/03/08 22:00:40 [INFO] [tv.domain.net] acme: use tls-alpn-01 solver
2019/03/08 22:00:40 [INFO] [tv.domain.net] acme: Trying to solve TLS-ALPN-01
[tv1.osuhickeys.net] failed to obtain certificate: acme: Error -> One or more domains had a problem:
[tv1.osuhickeys.net] acme: error: 400 :: urn:ietf:params:acme:error:tls :: remote error: tls: internal error, url:
The text was updated successfully, but these errors were encountered: