[BUG] Nginx keeps serving the self-signed certificate after the first validation when VALIDATION=http
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, nginx
- Lĩnh vực
- devops
Hướng nghiên cứu
The issue reports that nginx continues serving the self-signed certificate after Certbot saves the signed certificate; a linked pull request (#639) is already open. Start by reviewing that pull request and the certificate setup and nginx reload entry points it changes. Done means nginx serves the signed certificate after HTTP validation succeeds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
On a new container with VALIDATION=http, the first certbot run obtains LE certificate, but nginx keeps serving the self-signed placeholder.
Expected Behavior
Nginx is reloaded when signed certificates are saved instead of the self-signed ones
Steps To Reproduce
- Create empty ./config
- Use docker-compose.yml (below)
- Wait for
Server readyin docker logs - Make sure that signed certs are saved to the correct location:
~/tmp$ openssl x509 -in config/keys/cert.crt -noout -issuer -subject -dates
issuer=C=US, O=Let's Encrypt, CN=YE2
subject=CN=[redacted.com]
notBefore=Nov 25 13:53:02 2026 GMT
notAfter=Feb 23 13:53:01 2027 GMT <<<<<<<
- Make sure that nginx is still serves the self-signed ones:
~/tmp$ openssl s_client -connect 127.0.0.1:443 -servername [redacted.com] | openssl x509 -noout -issuer -subject -dates
Connecting to 127.0.0.1
depth=0 C=US, ST=CA, L=Carlsbad, O=Linuxserver.io, OU=LSIO Server, CN=*
verify error:num=18:self-signed certificate <<<<<<< self-signed
verify return:1
depth=0 C=US, ST=CA, L=Carlsbad, O=Linuxserver.io, OU=LSIO Server, CN=*
verify return:1
issuer=C=US, ST=CA, L=Carlsbad, O=Linuxserver.io, OU=LSIO Server, CN=*
subject=C=US, ST=CA, L=Carlsbad, O=Linuxserver.io, OU=LSIO Server, CN=*
notBefore=Nov 25 14:51:21 2026 GMT
notAfter=Nov 22 14:51:21 2036 GMT <<<<<<< bad date
Environment
- OS: Ubuntu Server 26.04
- How docker service was installed: apt-get install docker.io
CPU architecture
x86-64
Docker creation
services:
swag:
image: lscr.io/linuxserver/swag:latest
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- URL=[redacted.com]
- VALIDATION=http
volumes:
- ./config:/config
ports:
- 443:443
- 80:80
restart: unless-stopped
Container logs
[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] 02-swag-old-certbot-paths: executing...
[migrations] 02-swag-old-certbot-paths: succeeded
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
Linuxserver.io version: 5.10.0-ls503
Build-date: 2026-11-21T10:49:28+00:00
───────────────────────────────────────
Setting resolver to 127.0.0.11
Setting worker_processes to 1
generating self-signed keys in /config/keys, you can replace these with your own keys if required
....+...+..+.......+.....+....+..+............+++++++++++++++++++++++++++++++++++++++*..........+...+++++++++++++++++++++++++++++++++++++++*......+..............+...+...+....+...+.....+....++++++
....+....+......+...........+....+++++++++++++++++++++++++++++++++++++++*....+.+..+++++++++++++++++++++++++++++++++++++++*.......+...............+......+..+.+..++++++
-----
Variables set:
PUID=1000
PGID=1000
TZ=Etc/UTC
URL=[redacted.com]
SUBDOMAINS=
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=http
CERTPROVIDER=
CERT_PROFILE=
DNSPLUGIN=
EMAIL=
STAGING=
Created .donoteditthisfile.conf
Using Let's Encrypt as the cert provider
No e-mail address entered or address invalid
http validation is selected
Generating new certificate
Saving debug log to /config/log/letsencrypt/letsencrypt.log
Account registered.
Requesting a certificate for [redacted.com]
Successfully received certificate.
Certificate is saved at: /config/etc/letsencrypt/live/[redacted.com]/fullchain.pem
Key is saved at: /config/etc/letsencrypt/live/[redacted.com]/privkey.pem
This certificate expires on 2027-02-23.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New certificate generated; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts.
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Server ready
- Ngôn ngữ chính
- Dockerfile
- Star
- 3.8k
- Fork
- 276
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxserver/docker-swag
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linuxserver/docker-swag#631 · 3 bình luận ·
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
linuxserver/docker-swag#636 · 1 bình luận ·
-
[BUG] Anonymous Authelia redirects can overwrite a newer login sessionCó thể đã có người làm @MeiXu6693 đã nhận 33 ngày trước. Đang mởno-issue-activity
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
linuxserver/docker-swag#634 · 2 bình luận ·
-
no-issue-activity
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
linuxserver/docker-swag#630 · 3 bình luận ·
-
[BUG] "chmod: changing permissions of '/XXX': Bad address" error message (QNAP)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug upstream issue work-in-progress
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
linuxserver/docker-swag#514 · 75 bình luận ·
Tất cả issue của linuxserver/docker-swag
Issue tương tự
-
canary-dead
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
activescott/home-infra-k8s-flux#578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
repo-harnesses: the entrypoint-guard check greps a message `#13692` reworded, so it fails on mainĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
daniel-ospina/tortoise#14947 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: infra tier: p3 type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
flashinfer-ai/flashinfer#10251 ·
Maintainer thường phản hồi trong vòng 1 ngày