[GH-ISSUE #874] CLI to add custom ssl certificate? #739

Closed
opened 2026-02-26 06:34:12 +03:00 by kerem · 3 comments
Owner

Originally created by @bdf0506 on GitHub (Feb 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/874

First off, THANK YOU so much to @jc21 for doing this project. It has made life sooooo much easier! I also recognize that there are over 400 issues on this project, so this may never be addressed, but figured I would try.

I use GoDaddy for my DNS, and unfortunately GoDaddy is not currently supported today. So instead, I'm using the dehydrated application to generate my SSL certificates that I need. It auto renews and everything is great.

But, every time my cert expires, I have to manually pull the generated certificate, upload it to nginx proxy manager, and then update the proxy host to use that SSL cert. I see that I can manually place the certificate in the custom_ssl/npm-x folder, where x is the number of the certificate. However, simply adding the file here doesn't do me anything other than getting it onto the filesystem. I also need a way to tell nginx proxy manager that the cert has been added here, so that it can actually be uploaded to the database. Is there any way that I can tell it from the cli to add the new cert to the database? If so, I can then script this up the proper way, hopefully.

Originally created by @bdf0506 on GitHub (Feb 7, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/874 First off, THANK YOU so much to @jc21 for doing this project. It has made life sooooo much easier! I also recognize that there are over 400 issues on this project, so this may never be addressed, but figured I would try. I use GoDaddy for my DNS, and unfortunately GoDaddy is not currently supported today. So instead, I'm using the dehydrated application to generate my SSL certificates that I need. It auto renews and everything is great. But, every time my cert expires, I have to manually pull the generated certificate, upload it to nginx proxy manager, and then update the proxy host to use that SSL cert. I see that I can manually place the certificate in the custom_ssl/npm-x folder, where x is the number of the certificate. However, simply adding the file here doesn't do me anything other than getting it onto the filesystem. I also need a way to tell nginx proxy manager that the cert has been added here, so that it can actually be uploaded to the database. Is there any way that I can tell it from the cli to add the new cert to the database? If so, I can then script this up the proper way, hopefully.
kerem 2026-02-26 06:34:13 +03:00
Author
Owner

@christian-skjetne commented on GitHub (Feb 8, 2021):

If you have the certs in the local file system you can maybe use this: https://github.com/jc21/nginx-proxy-manager/issues/87#issuecomment-742831838 as a workaround for now.

<!-- gh-comment-id:774960507 --> @christian-skjetne commented on GitHub (Feb 8, 2021): If you have the certs in the local file system you can maybe use this: https://github.com/jc21/nginx-proxy-manager/issues/87#issuecomment-742831838 as a workaround for now.
Author
Owner

@bdf0506 commented on GitHub (Feb 9, 2021):

This will work for now! I'll close this out since it seems to be a dupe of #87. Thanks for the pointers.

<!-- gh-comment-id:775589909 --> @bdf0506 commented on GitHub (Feb 9, 2021): This will work for now! I'll close this out since it seems to be a dupe of #87. Thanks for the pointers.
Author
Owner

@gomme600 commented on GitHub (Nov 19, 2021):

Would love this too!

<!-- gh-comment-id:974061603 --> @gomme600 commented on GitHub (Nov 19, 2021): Would love this too!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#739
No description provided.