Nginx-proxy-manager: Upload failed: Certificate Key is not valid

Created on 10 Nov 2020  Â·  6Comments  Â·  Source: jc21/nginx-proxy-manager

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

Most helpful comment

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

All 6 comments

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
thank you for posting this. I had the same problem when uploading a cloudflare certificate and this fixed it.

@juan11perez your welkome, glad it works ;)

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

got the same error, thanks for sharing the solution!

This is something they could fix easy i think

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ck003 picture ck003  Â·  6Comments

sudvej picture sudvej  Â·  5Comments

wuast94 picture wuast94  Â·  3Comments

jiatao99 picture jiatao99  Â·  6Comments

Sigri44 picture Sigri44  Â·  3Comments