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:
Failed authorization procedure.
myserver.de (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://myserver.de/.well-known/acme-challenge/YG3iSmO_SvuymJ_QUdGFX8SpEZxNnHI4FgH5btx0EcU [188.8.131.52]: 404
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?