NginxProxyManager / nginx-proxy-manager

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

Renew of custom Certificates #3153

Open lastsamurai26 opened 1 year ago

lastsamurai26 commented 1 year ago

Is your feature request related to a problem? Please describe. I found that it is not possible to renew uploaded certificates without connecting to Docker and manually adjusting the file. Is it possible to simply renew the custom certificates without either deleting and recreating them, and thus customizing all proxies again?

Describe the solution you'd like Re-upload a new custom certificate which is simply replaced.

Describe alternatives you've considered Re-upload a new custom certificate which is simply attached as a syslink to the current one like Let encrypt does.

Additional context I noticed that the Nginx Proxy Manager does not delete the deleted custom certificates from the filesystem.

agent-ck commented 9 months ago

As a workaround you can bind-mount the directory /docker/npm/letsencrypt from outside into the container to /etc/letsencrypt. If you create a custom certificate in NPM, it can be accessed from outside then. After a certificate rotation, all you have to do is replace the files on docker host and restart the container. The new certificate is then active in NPM.

(ATTENTION: The key must not be protected by a password, so make sure you have the correct permissions!)

I do this myself via Jenkins with Ansible integration, but a post-hook script should be sufficient for this.

You should also look at #2954 in this context, as there is a display error here. However, the function is not affected.

github-actions[bot] commented 3 months ago

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