Open Peddaahh opened 7 months ago
I got the same issue. After a little investigation I found that the backend is using openssl to verify your private key with the following command:
openssl pkey -in ' + filepath + ' -check -noout 2>&1
Running this same command for my key (8192bit RSA) on the same machine (Raspi 5), it takes around 30-40s. However, the timeout is to occur after 10s already.
I could solve the problem by modifying this line: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/209c1b33347d1ea82870e742edf5039cc254d7ba/backend/internal/certificate.js#L680 I logged into the container and executed the following command:
sed -i 's/10000/50000/g' /app/internal/certificate.js
After a restart of the container, I could upload my keys.
It would be good to increase this limit for slower machines with larger keys to at least 40-50s.
Can confirm, and I am also using 8192bit RSA! This should be considered! With increasing the timeout, it works
This impacted me as well. It really would be nice if this is addressed.
Quick fix, execute this on your docker host:
docker exec -it proxy sed -i 's/10000/50000/g' internal/certificate.js && docker restart proxy
Quick fix, execute this on your docker host:
docker exec -it proxy sed -i 's/10000/50000/g' internal/certificate.js && docker restart proxy
Just checking, does this work on the latest release?
Quick fix, execute this on your docker host:
docker exec -it proxy sed -i 's/10000/50000/g' internal/certificate.js && docker restart proxy
Just checking, does this work on the latest release?
The fix should should. The line number is still the same and there is only one 10000 in the whole file.
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug I cannot upload self-signed certificates for my local network anymore. It gives the error
Upload failed: Result Validation Error: Validation timed out. This could be due to the key being passphrase-protected.
even though it is definitely not and the Console gives meFailed to load resource: the server responded with a status of 400 ()
on URLhttps://proxy.local/api/nginx/certificates/validate
. A screenshot of the Request will be included below and there is also a log file of a fresh start containing only the logs of adding a custom certificate. This even happened when I deleted an already uploaded certificate and tried to re-upload it. The console only showsNginx Proxy Manager Version v2.11.1
To Reproduce Steps to reproduce the behavior:
SSL Certificates
Add SSL Certificat
Custom
Save
Expected behavior Certificate should be successfully uploaded and being usable for local proxy hosts.
Screenshots
Operating System Simple Docker deployment w/out external DB. On:
Additional context RasPi:
uname -m
aarch64Docker version 25.0.3, build 4debf41