-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Connection refused #10
Comments
What do the rest of your output and the |
@wmnnd nginx-certbot is on the same server. So a webserver by nginx is run on host server. And then error message is changed to the following. sudo ./init-letsencrypt.sh
Existing data found for mydomain.org. Continue and replace existing certificate? (y/N) y
### Creating dummy certificate for mydomain.org ...
Generating a RSA private key
..................+++++
..........................................+++++
writing new private key to '/etc/letsencrypt/live/mydomain.org/privkey.pem'
-----
### Starting nginx ...
Recreating nginx-lets-encrypt_nginx_1 ... done
### Deleting dummy certificate for mydomain.org ...
### Requesting Let's Encrypt certificate for mydomain.org ...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mydomain.org
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mydomain.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mydomain.org/.well-known/acme-challenge/YL-7bc_Y-riqfL0H8XrVuY3aq7ui2IlhzLMU8WmWy1A [207.148.120.13]: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: mydomain.org
Type: unauthorized
Detail: Invalid response from
http://mydomain.org/.well-known/acme-challenge/YL-7bc_Y-riqfL0H8XrVuY3aq7ui2IlhzLMU8WmWy1A
[207.148.120.13]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404
Not Found</h1></center>\r\n<hr><center>"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
### Reloading nginx ...
2019/03/19 07:46:45 [notice] 9#9: signal process started |
After that sudo docker-compose up
[sudo] password for yan:
Starting nginx-lets-encrypt_certbot_1 ... done
Starting nginx-lets-encrypt_nginx_1 ... done
Attaching to nginx-lets-encrypt_certbot_1, nginx-lets-encrypt_nginx_1
certbot_1 | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1 |
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1 |
certbot_1 | No renewals were attempted.
certbot_1 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
@wmnnd It works! I copy index.html file to nginx container and change root for / to that folder. Everything works flawlessly. Thank you! |
@yanlinaung30 I don't understand your solution. Could you clarify? |
@YoniSchirris I had the same issue. What fixed it for me was making sure the local folder containing nginx.conf was mounted to /etc/nginx/conf.d in docker-compose.yml. This is needed to get the SSL certificate keys for validation, I believe. The example had it as ./data/nginx:/etc/nginx/conf.d but my Nginx location was in ./docker/nginx hence ./docker/nginx:/etc/nginx/conf.d. Hope this helps |
I've benn spending half a day just for this stupid issue. Thank you, you save my life! :-) |
The text was updated successfully, but these errors were encountered: