I'm trying to create a certificate for my school's web server. It only supports HTTPS, HTTP connections are routed to a different machine.
So when I send this command: ./letsencrypt-auto certonly --webroot -w /var/www/ -d myserver.de
I get this response:
As far as I understand, the script creates a file /var/www/.well-known/acme-challenge/<some random string> and tries to access this file from another server using HTTP. This would work fine if my server used HTTP, but it only responds to HTTPS.
So my question is: How do i make the "let's encrypt"-script use HTTPS?
My webserver only serves HTTPS, so I was wondering why I was always getting a failure trying to create a certificate. This aspect should be added clearly into the doc.
[quote=“kelunik, post:4, topic:5764, full:true”]
You can just add a redirect rule to your other server, redirecting /.well-known/acme-challenge to HTTPs.
[/quote]This won’t work if port 80 is blocked and the site is purely 443, though.