NginxProxyManager / nginx-proxy-manager

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

Nginx Proxy Manager starts using incorrect SSL certificate from "test.com" #973

Open ScionOfDesign opened 3 years ago

ScionOfDesign commented 3 years ago

Describe the bug Sometimes Nginx Proxy Manager will start using an incorrect SLL certificate from "test.com" for all of its websites, causing them to experience an SSL error. The bug occurs after running Nginx Proxy Manager continually for around a day or two on version v2.8.1.

To Reproduce Steps to reproduce the behavior:

  1. Setup Nginx Proxy Manager via the latest docker image.
  2. Create a new Proxy Host and assign it a newly-generated LetsEncrypt SSL certificate. Verify the host works.
  3. Wait a few days.
  4. Try and visit the Proxy Host only for it to give you an SSL error registered to the domain "test.com".

Expected behavior I expected NPM to continue to use my latest generated certificates for the appropriate host instead of a certificate for "test.com".

Screenshots I will provide one when the issue happens again.

Operating System Latest Docker image on Ubuntu 20.04.2 LTS using Docker v20.10.5, build 55c4c88.

Additional context Restarting the app image (no need to restart the database) fixes the issue. I do have another Urbackup Client image alongside my NPM image that backs up the volumes for the database and the app data, but this is read-only, and the issue does not occur after performing a manual backup.

ScionOfDesign commented 3 years ago

The issue seemed to be with HSTS. I disabled HSTS on my nodes and it works fine now.

AlfaJackal commented 2 years ago

Same issue here! Definitely is an HSTS issue, but ...

... after waiting for a few hours today, the issue is there again: No trusted certificate. I can solve it by editing anything "edit" > "Block common exploits" = ON or OFF > "Save" and it works again like a charm.

Any idea what to do here to solve the problem? Running on 2.9.9 original image.

github-actions[bot] commented 5 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: