mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #759] RSA key check fails if header is -----BEGIN PRIVATE KEY----- #643
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#643
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 @gparmeggiani on GitHub (Dec 5, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/759
Hi,
I'm using Nginx Proxy Manager version 2.7.1 (latest pulled from dockerhub)
When uploading a custom SSL certificate an error occurs if the private key has the
-----BEGIN PRIVATE KEY-----instead of the-----BEGIN RSA PRIVATE KEY-----By looking at the code, the following line in
certificate.jsis responsible for the errorlet key_type = private_key.includes('-----BEGIN RSA') ? 'rsa' : 'ec';This causes the check to fail because the key is interpreted as ec instead of rsa.
I tried to manually run the openssl check command with my key and I get the expected result: RSA key ok
@BobWs commented on GitHub (Dec 12, 2020):
will this fixed in the next update? I also facing the same problem, had to reverted backup to version jlesage/nginx-proxy-manager:v1.10.2
@tbringuier commented on GitHub (Dec 12, 2020):
For now, you can just replace with
-----BEGIN RSA PRIVATE KEY-----but yeah, can u update docker image ? :(@BobWs commented on GitHub (Dec 14, 2020):
Where and What do I need to replace with? I'm sorry but it is not totally clear to me
@gparmeggiani commented on GitHub (Dec 14, 2020):
Just open the private key you are trying to upload with a text editor and edit the header text so that it reads
-----BEGIN RSA PRIVATE KEY-----. You might need to update the footer text too@BobWs commented on GitHub (Dec 14, 2020):
Thanks for explaining. It worked! Hopefully it will be fix soon.
@chaptergy commented on GitHub (Dec 14, 2020):
Could you please check whether the issue still persists in this new pull request?
Use image
jc21/nginx-proxy-manager:github-pr-774for this. Just change the tag from:latestto:github-pr-774in your docker-compose file.@goncaloGIT commented on GitHub (Dec 22, 2020):
This image ( jc21/nginx-proxy-manager:github-pr-774 ) worked for me , thank you