-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL key too small, project doesn't start #533
Comments
It's definitely sub-optimal to be failing because the key is too weak. Any secured linux distro will enforce the SSL This appears to be a NodeJS core TLS module issue? |
I think bankai's Lines 110 to 179 in 858a25b
|
Looks like a fix was pre-emptively attempted in the past, but a typo led to it not working ( It's better to have keys expire frequently BTW, especially in this sort of situation where they are easily regenerated by trusted applications. I'd recommend using a 90 day expiry the same as LetsEncrypt. This protects to some extent against key exfiltration by malware, bots etc. by limit the amount of time an exfiltrated key can be used maliciously. PR incoming... |
Turns out the default expiration for selfsigned, which is doing the cert generation, is 30 days, which is more secure. So in my PR I've just switched |
Actually I just noticed |
Waiting on this: jfromaniello/selfsigned#35 |
npm start
fails with below:Workaround:
Changing a line in
/etc/ssl/openssl.cnf
from:
CipherString = DEFAULT@SECLEVEL=2
to
CipherString = DEFAULT@SECLEVEL=1
but it is probably better to just create a longer ssl key.
Versions:
npm 6.11.3
node v10.16.3
debian buster
openSSL 1.0.2g 1 Mar 2016
The text was updated successfully, but these errors were encountered: