certificate of custom certificate return malformed zipfile
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latestdocker image?- Yes / No
- Are you sure you're not using someone else's docker image?
- Yes / No
- Have you searched for similar issues (both open and closed)?
- Yes / No
Describe the bug downloading custom certificate malforms the zip file
Nginx Proxy Manager Version v2.14.0
To Reproduce Steps to reproduce the behavior:
- Go to 'Certificates' tab
- Click on the 3 dots on any "custom certificate"
- hit download
- try to unzip the file
Expected behavior export certificate as correct zipfile
Screenshots Loading the archive ‘/home/higa/Downloads/certificate-39.zip’ failed with the following error: Failed to open archive: Not a zip archive
Operating System Debian 13
Additional context i only have this problem with the "custom certificate", "Let's Encrypt – cloudflare" works fine
as you can see in the screenshot, there is also an weird '"CloudFlare,' to be seen, could this be due to having the cloudflare origin CA included?
Hi. There is a "limitation" of NPM, allowing only Let's Encrypt certificates to be downloaded. If You open that downloaded malformed zip in notepad You will see that :) it's simple text file informing You of this behaviour.
If You need to download custom certificate You have to go to the NPM filesystem:
data/custom_ssl/npm-39/
the number corresponds with number from GUI when You click 3 dots:
and get cert/key from there, for example:
-rw-r--r-- 1 root root 1391 Feb 21 2025 fullchain.pem
-rw-r--r-- 1 root root 1704 Feb 21 2025 privkey.pem
didnt even think about trying to open the zip with an text editor, thanks that solved my problem