NginxProxyManager / nginx-proxy-manager

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

Update custom SSL cert expiration date when SSL files change in the cert directory #3806

Open begunfx opened 2 weeks ago

begunfx commented 2 weeks ago

Is your feature request related to a problem? Please describe. Currently I'm generating SSL certs outside of NPM. I'm able to use a script to copy the certs into the custom cert folder inside of NPM on a cron/schedule. The issue is after the custom SSL cert is initially created, if I update the SSL files in the cert folder the date within the UI does not update.

Describe the solution you'd like The simplest solution I can think of is to watch the cert folder for changes and if it is updated then write a new date from the SSL cert into the database and update the date in the UI.

Describe alternatives you've considered I can't think of any other alternatives other than manually creating a new custom cert everytime it's about to expire - not a reasonable solution by any means.

Additional context My SSL cert is by ZeroSSL.

xingtong00 commented 1 week ago

I'm also experiencing the same issue. I'm updating my certificates regularly using ACME, but it seems that the updated certificate files are not working.