My domain is:
https://www.26reads.com
This is for a REST API - so an actual link that should return JSON is https://www.26reads.com/api/v1/books/
I ran this command:
I'm following this guide to setup Let's Encrypt via Docker and Nginx.
I was able to successfully generate a staging certificate with ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory. This gave me the NET::ERR_CERT_AUTHORITY_INVALID (as expected) and by continuing, I was able to access my API and POST to it.
I then successfully (?) generated a production certificate but that's where I'm still getting the NET::ERR_CERT_AUTHORITY_INVALID and 503 errors.
It produced this output:
I believe a cert was successfully stored as when I run docker-compose up --build, I get:
(** ** emphasis mine)
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2022-01-12 04:38:49.224 UTC [1] LOG: starting PostgreSQL 13.5 (Debian 13.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
db_1 | 2022-01-12 04:38:49.226 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2022-01-12 04:38:49.226 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2022-01-12 04:38:49.228 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2022-01-12 04:38:49.232 UTC [25] LOG: database system was shut down at 2022-01-12 04:38:37 UTC
db_1 | 2022-01-12 04:38:49.235 UTC [1] LOG: database system is ready to accept connections
nginx-proxy-letsencrypt_1 | Info: running acme-companion version v2.1.2-7-g4b23f7f
web_1 | [2022-01-12 04:38:51 +0000] [1] [INFO] Starting gunicorn 20.1.0
web_1 | [2022-01-12 04:38:51 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
web_1 | [2022-01-12 04:38:51 +0000] [1] [INFO] Using worker: sync
web_1 | [2022-01-12 04:38:51 +0000] [7] [INFO] Booting worker with pid: 7
nginx-proxy | Custom dhparam.pem file found, generation skipped
nginx-proxy | forego | starting dockergen.1 on port 5000
nginx-proxy | forego | starting nginx.1 on port 5100
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: using the "epoll" event method
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: nginx/1.21.1
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: built by gcc 8.3.0 (Debian 8.3.0-6)
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: OS: Linux 5.4.0-92-generic
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: start worker processes
nginx-proxy | nginx.1 | 2022/01/12 04:38:50 [notice] 21#21: start worker process 26
nginx-proxy | dockergen.1 | 2022/01/12 04:38:51 Error inspecting container: 43f337e9dfe9ea2ec757139c089f5800341376828baea712bb84f5b95fff1635: No such container: 43f337e9dfe9ea2ec757139c089f5800341376828baea712bb84f5b95fff1635
nginx-proxy | dockergen.1 | 2022/01/12 04:38:51 Generated '/etc/nginx/conf.d/default.conf' from 4 containers
nginx-proxy | dockergen.1 | 2022/01/12 04:38:51 Running 'nginx -s reload'
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: signal 1 (SIGHUP) received from 28, reconfiguring
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: reconfiguring
nginx-proxy | dockergen.1 | 2022/01/12 04:38:51 Watching docker events
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: using the "epoll" event method
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: start worker processes
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: start worker process 32
nginx-proxy | dockergen.1 | 2022/01/12 04:38:51 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification 'nginx -s reload'
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 26#26: gracefully shutting down
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 26#26: exiting
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 26#26: exit
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: signal 17 (SIGCHLD) received from 26
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: worker process 26 exited with code 0
nginx-proxy | nginx.1 | 2022/01/12 04:38:51 [notice] 21#21: signal 29 (SIGIO) received
nginx-proxy-letsencrypt_1 | Info: 4096 bits RFC7919 Diffie-Hellman group found, generation skipped.
nginx-proxy-letsencrypt_1 | Reloading nginx proxy (nginx-proxy)...
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: signal 1 (SIGHUP) received from 53, reconfiguring
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: reconfiguring
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: using the "epoll" event method
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 [notice] 53#53: signal process started
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: start worker processes
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: start worker process 54
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 32#32: gracefully shutting down
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 32#32: exiting
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 32#32: exit
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: signal 17 (SIGCHLD) received from 32
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: worker process 32 exited with code 0
nginx-proxy | nginx.1 | 2022/01/12 04:38:53 [notice] 21#21: signal 29 (SIGIO) received
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 Generated '/app/letsencrypt_service_data' from 4 containers
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 Running '/app/signal_le_service'
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 Watching docker events
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:53 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
nginx-proxy-letsencrypt_1 | Reloading nginx proxy (nginx-proxy)...
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: signal 1 (SIGHUP) received from 74, reconfiguring
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: reconfiguring
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:54 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
nginx-proxy-letsencrypt_1 | 2022/01/12 04:38:54 [notice] 74#74: signal process started
**nginx-proxy-letsencrypt_1 | Creating/renewal 26reads.com certificates... (26reads.com)**
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: using the "epoll" event method
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: start worker processes
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: start worker process 75
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 54#54: gracefully shutting down
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 54#54: exiting
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 54#54: exit
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: signal 17 (SIGCHLD) received from 54
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: worker process 54 exited with code 0
nginx-proxy | nginx.1 | 2022/01/12 04:38:54 [notice] 21#21: signal 29 (SIGIO) received
**nginx-proxy-letsencrypt_1 | [Wed Jan 12 04:38:54 UTC 2022] Domains not changed.**
**nginx-proxy-letsencrypt_1 | [Wed Jan 12 04:38:54 UTC 2022] Skip, Next renewal time is: Sun Mar 13 04:16:30 UTC 2022**
nginx-proxy-letsencrypt_1 | [Wed Jan 12 04:38:54 UTC 2022] Add '--force' to force to renew.
nginx-proxy-letsencrypt_1 | Sleep for 3600s
My web server is (include version):
nginx-proxy 0.9-alpine
The operating system my web server runs on is (include version):
Ubuntu 20.04
My hosting provider, if applicable, is:
DigitalOcean
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
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
n/a I don't believe I'm using Certbot