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