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

Upload failed: Certificate Key is not valid

Open MatijaTerzic opened this issue 6 years ago • 6 comments

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

MatijaTerzic avatar Nov 10 '20 12:11 MatijaTerzic

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-----

MatijaTerzic avatar Nov 10 '20 13:11 MatijaTerzic

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

juan11perez avatar Nov 29 '20 17:11 juan11perez

@juan11perez your welkome, glad it works ;)

MatijaTerzic avatar Nov 29 '20 17:11 MatijaTerzic

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

hb-i avatar Dec 10 '20 23:12 hb-i

got the same error, thanks for sharing the solution!

Likqez avatar Dec 11 '20 20:12 Likqez

This is something they could fix easy i think

MatijaTerzic avatar Dec 12 '20 15:12 MatijaTerzic