-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
--http-01-port/--dvsni-port ignored by auth check from --server #1357
Comments
You can't make the server switch ports at the moment, and it will never support arbitrary ports (though maybe one day it will support a single unusual privileged port). We should document this, however. |
I'm sorry for any confusion the existence of these flags caused. The
Setting As you do not want to shutdown your server or use the Apache plugin, I recommend you take a look at webroot. The basic idea here is to use your existing webserver to serve the files that need to be provisioned for domain validation. No shutdown of Apache necessary. |
Thanks for the explanation! Indeed it's a bit confusing why the client is able to switch ports while the server doesn't support it (so I've suspected the documentation being "behind", as it doesn't seem to make sense). Also thanks for the pointer with webroot, which indeed seems to be the answer to my issue; I will try that instead then. Though if I understand correctly, that requires to setup some PS: For some practical examples on using "webroot", it might be worth seeing the discussion on its initial article in Using the webroot domain verification method. While the article itself might be slightly outdated (some steps no longer apply with that patch being merged), the comments below it give several good examples for Apache and Nginx. |
You probably want to make reverse proxy at frontend HTTP server for /.well-known/acme-challenge/ to the port you need. |
@matwey No, I don't – as there is no "frontend HTTP server" before the one updated :) As described above, it's working for me currently, so I don't want to change it. |
Still confusing in 2018 ! |
I've meanwhile completely switched to |
As I don't want to shutdown my web server (running multiple VHosts) for cert creation/renewal, I've tried using the
--http-01-port
and--dvsni-port
parameters, using 8081 and 8082 as ports. While the client starts up the servers correctly (according to the logs:DEBUG:letsencrypt.plugins.standalone:Stopping server at 0.0.0.0:8081
), verification seems to ignore this:Note the missing port in the URL – which made the running Apache answer the request; the Apache logs confirm this:
So somehow the detail which port to use gets lost on the way to the remote server (boulder).
System: Debian Wheezy with the client just installed a few hours ago via
git clone
. Example command used:(note that I've added
--standalone-supported-challenges http-01
only in a last run for verification. Tried the same specifyingdvsni
, same results: though I specified--http-01-port 8081 --dvsni-port 8082
, the incoming requests happen on ports 80 resp. 443.)I don't want a downtime of several minutes just for refreshing certs – and I don't want to risk Apache not starting up if something goes wrong. So what's the correct way to have the challenge using different ports then? Related issue: #1164
The text was updated successfully, but these errors were encountered: