NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.27k stars 2.7k forks source link

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

Open fthobe opened 2 weeks ago

fthobe commented 2 weeks ago

Checklist

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

Elyviere commented 2 weeks ago

I may have the same issue. I've got one Let's Encrypt certificate and one manually uploaded certificate. I added two hosts, .a and .b.c and selected my Let's Encrypt certificate. However, it's serving the manually uploaded certificate instead.