Let’s Encrypt – client lacks sufficient authorization

source: NixCP

Check using curl against http

1
curl -I http://nixcp.com/.well-known/acme-challenge/

nginx config mods

1
2
3
server {
listen 80;
server_name www.nixcp.com nixcp.com;

# Redirect all requests to https
location / {
return 301 https://nixcp.com$request_uri;
}

# This rule excludes the .well-known directory from the 301 redirect.
location /.well-known {
root /var/www/nixcp.com;
}
}