mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #52] Cannot upload certificate files #49
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Grekkor on GitHub (Jan 13, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/52
I cannot upload certificate files,
It just does nothing and then says: "Upload failed: 0"
@jc21 commented on GitHub (Jan 14, 2019):
Anything in the docker logs?
@Grekkor commented on GitHub (Jan 14, 2019):
Only:
I generated the certificate files on linux. I got two .pem files.
I tried uploading them as .crt and .key files aswell but no luck.
Here the command I used:
openssl req -x509 -newkey rsa:4096 -keyout HomeCertificateKey.pem -out HomeCertificateCert.pem -days 365Edit: Nvm, the docker log entry has nothing to do with this issue in my opinion. I just tested it again and nothing new appears in the log.
Edit 2: When trying to upload .txt files then I get:
and a log entry:
[1/14/2019] [6:53:05 AM] [Express ] › ⚠ warning Certificate is not valid (Command failed: openssl x509 -in /tmp/6cba1486-d794-45ef-8e21-397f1df69b6d/tmp -subject -noout unable to load certificate 140095325644032:error:0906D06C:PEM routines:PEM_read_bio:no start line:../crypto/pem/pem_lib.c:691:Expecting: TRUSTED CERTIFICATE)Hence my assumption is it has to do with certificate validation, which is maybe stuck in an infinite loop? It takes like a good 1-2 minutes before the error notification appears. The 400 error appears instantaneously.
Edit 3: The upload succeeds when using the -nodes option to disable DES. I now used the following command:
openssl req -newkey rsa:4096 -nodes -keyout HomeCertificateKey.pem -x509 -days 365 -out HomeCertificateCert.pemI suggest you either support DES or document somewhere the constraints on the certificates.
@chaptergy commented on GitHub (May 10, 2021):
This issue should be fixed, certificate upload is currently working.