Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
not necessary
I ran this command:
sudo /etc/certbot-auto/certbot-auto certonly --authenticator webroot --installer nginx --must-staple --staple-ocsp -d …
server {
autoindex on;
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www;
server_name example.com;
location ~ /.well-known {
add_header Content-Type text/plain;
allow all;
}}
It produced this output:
Congratulations! Your certificate and chain have been saved at: …
My web server is (include version):
nginx
The operating system my web server runs on is (include version):
ubuntu 16.04
My hosting provider, if applicable, is:
Linode
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
As you can see I succeeded in issuing the certificate.
I set up a dedicated nginx configuration (shown above) just for this purpose.
As I understand, since Jan 2018, the challenge has to be in http, not in https, due to a technical problem.
(Is that correct?)
Note: I don’t rely SNI - I only have only one certificate with multiple domains (SAN).
In normal usage, I return the nginx configuration to always forward port 80 (http) to port 443 (https).
But in that state I don’t believe it can perform the automatic certificate renewal. (Is that correct?)
I am looking for documentation (or examples) about how to set up the nginx configuration so that it will always forward to 443 (https) except for access to /.well_known , so that auto renewal could be performed.
Also it would be a plus if there were a way to limit access to /.well_known only to letsencrypt.org only at time of auto renewal.