[GH-ISSUE #709] Upload failed: Certificate Key is not valid #600

Closed
opened 2026-02-26 06:33:36 +03:00 by kerem · 6 comments
Owner

Originally created by @MatijaTerzic on GitHub (Nov 10, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/709

I am trying to add a custom certificate to npm and i receive following error:

Upload failed: Certificate Key is not valid (Command failed: openssl ec -in /tmp/de8aedfc-852b-430c-b97e-3c536caa2d4d/tmp -check -noout 2>&1 )

Certificate / key /cabundle works on other systems

Originally created by @MatijaTerzic on GitHub (Nov 10, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/709 I am trying to add a custom certificate to npm and i receive following error: Upload failed: Certificate Key is not valid (Command failed: openssl ec -in /tmp/de8aedfc-852b-430c-b97e-3c536caa2d4d/tmp -check -noout 2>&1 ) Certificate / key /cabundle works on other systems
kerem closed this issue 2026-02-26 06:33:36 +03:00
Author
Owner

@MatijaTerzic commented on GitHub (Nov 10, 2020):

Solved, in my key file the first and last line was -----BEGIN PRIVATE KEY----- & -----END PRIVATE KEY-----
Apperantly npm needs -----BEGIN RSA PRIVATE KEY----- & -----END RSA PRIVATE KEY-----

<!-- gh-comment-id:724696524 --> @MatijaTerzic commented on GitHub (Nov 10, 2020): Solved, in my key file the first and last line was -----BEGIN PRIVATE KEY----- & -----END PRIVATE KEY----- Apperantly npm needs -----BEGIN RSA PRIVATE KEY----- & -----END RSA PRIVATE KEY-----
Author
Owner

@juan11perez commented on GitHub (Nov 29, 2020):

@MatijaTerzic
thank you for posting this. I had the same problem when uploading a cloudflare certificate and this fixed it.

<!-- gh-comment-id:735429681 --> @juan11perez commented on GitHub (Nov 29, 2020): @MatijaTerzic thank you for posting this. I had the same problem when uploading a cloudflare certificate and this fixed it.
Author
Owner

@MatijaTerzic commented on GitHub (Nov 29, 2020):

@juan11perez your welkome, glad it works ;)

<!-- gh-comment-id:735430145 --> @MatijaTerzic commented on GitHub (Nov 29, 2020): @juan11perez your welkome, glad it works ;)
Author
Owner

@hb-i commented on GitHub (Dec 10, 2020):

Worked. Would be nice to include it in the error.

<!-- gh-comment-id:742863803 --> @hb-i commented on GitHub (Dec 10, 2020): Worked. Would be nice to include it in the error.
Author
Owner

@Likqez commented on GitHub (Dec 11, 2020):

got the same error, thanks for sharing the solution!

<!-- gh-comment-id:743398833 --> @Likqez commented on GitHub (Dec 11, 2020): got the same error, thanks for sharing the solution!
Author
Owner

@MatijaTerzic commented on GitHub (Dec 12, 2020):

This is something they could fix easy i think

<!-- gh-comment-id:743771816 --> @MatijaTerzic commented on GitHub (Dec 12, 2020): This is something they could fix easy i think
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#600
No description provided.