NginxProxyManager / NginxProxyManager/nginx-proxy-manager

Wrong Certificate Served when installing more than one cert and domain with one host

Open
#4,140 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug stale
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
nginx proxy manager serves wrong certificate if more than one certificate is served.

Nginx Proxy Manager Version
v2.12.1

To Reproduce
Steps to reproduce the behavior:

  1. Create two wildcard certificates with let's encrypt (*.a.b & *.b.a)
  2. Add the same host twice each using a different certificate upon different fqdn requested (eg 1.a.b and 1.b.a both pointing to x.x.x.x:xx
  3. Open both pages, one will have an error.

Expected behavior
Both requests get handled with correct cert.

Operating System
Ubuntu 24.04 current updates installed

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Reproduce with the jc21/nginx-proxy-manager:latest Docker image using two wildcard certificates and two host entries as described, then inspect the generated proxy and TLS configuration. Done means both requested hostnames serve their respective certificates without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.