nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

certificate of custom certificate return malformed zipfile

Open hugobugomugo opened this issue 7 months ago • 2 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker 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:

  1. Go to 'Certificates' tab
  2. Click on the 3 dots on any "custom certificate"
  3. hit download
  4. 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

Image

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?

hugobugomugo avatar Apr 21 '26 10:04 hugobugomugo

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:

Image

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

sltvtr avatar Apr 28 '26 10:04 sltvtr

didnt even think about trying to open the zip with an text editor, thanks that solved my problem

hugobugomugo avatar May 02 '26 14:05 hugobugomugo