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

Generate .P12 files

Open Whatchawnt opened this issue 6 months ago • 3 comments

As an Enhancement the script would generate a P12 file. The script takes to possible arguments the generated P12 file is created based on the files in the associated "npm-#" folders already generated by nginx-proxy-manager. This is only a bash script but if someone generates the front end for this script, it can be used to generate the P12 files by passing in the arguments from the front end.

`Options: --npm Required. Name or identifier used for the certificate. Must be in the form 'npm-#' --password Optional. Password to secure the PKCS#12 (.p12) file. If not provided the scipt will use the script default. -h, --help Show this help message and exit.

Example: ./$SCRIPT_NAME --npm npm-123 ./$SCRIPT_NAME --npm npm-123 --password secret123`

Original Enhancement Request: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4599

Whatchawnt avatar Jul 14 '25 17:07 Whatchawnt

This script should be run after a certificate generation or after rekey of certificates to keep the .p12 current.

Whatchawnt avatar Jul 14 '25 21:07 Whatchawnt

This is exactly what I need right now! Would be great to get this merged in, or I might have to fork @Whatchawnt 's repo instead

westdom avatar Sep 25 '25 11:09 westdom

Docker Image for build 4 is available on DockerHub:

nginxproxymanager/nginx-proxy-manager-dev:pr-4658

[!NOTE] Ensure you backup your NPM instance before testing this image! Especially if there are database changes. This is a different docker image namespace than the official image.

[!WARNING] Changes and additions to DNS Providers require verification by at least 2 members of the community!