SSL routines::ca md too weak and workaround - ciphers: "DEFAULT:@SECLEVEL=0" isn't working #46545
Replies: 10 comments 1 reply
-
It'd be helpful if you could explain why you're using SHA-1 and why switching to SHA-256 isn't an option for you. The deprecation of SHA-1 for X.509 started almost a decade ago so it's kind of odd to still see it around. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your prompt response. I understand. But given the complex and legacy infrastructure, it will take some time to rotate these certs (most of them are updated with sha256 but there are still a few left with sha1) with an updated one. I have raised the priority for that as well. Until then, if something can be done to unblock ourselves while testing nodejs v18, that would be great |
Beta Was this translation helpful? Give feedback.
-
Your original description sounds like a duplicate of #36655 but you should be able to work around that with Having said that... SECLEVEL=0 deliberately weakens the security of TLS. Push hard to get those certs rotated, it's the responsible thing to do. |
Beta Was this translation helpful? Give feedback.
-
yes, #36655 was the issue. workaround mentioned in that issue did the job. Btw, I have some questions for
|
Beta Was this translation helpful? Give feedback.
-
@bnoordhuis any insights on those two questions would be helpful. |
Beta Was this translation helpful? Give feedback.
-
I'll convert this to a discussion. About that error message: it comes straight from openssl (node doesn't control it, it just passes it on) and yes, you're going to see it with any SHA-1 certificate. |
Beta Was this translation helpful? Give feedback.
-
Confusing error message coming from OpenSSL. Even though the issue is with cert, it throws
|
Beta Was this translation helpful? Give feedback.
-
Quick question @bnoordhuis The signature algorithm used in a certificate can be different from the ciphers used in the TLS connection. Then why changing the ciphers to or is it like SECLEVEL=0 is a blanket relaxation for multiple things including signature algorithms and ciphers? Just trying to get some understanding of the internals. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Just to confirm again - It looks for cert as well as ca and not just cert, not to be signed with sha1 (or other unsupported algorithms) |
Beta Was this translation helpful? Give feedback.
-
fixed in #50186 |
Beta Was this translation helpful? Give feedback.
-
Version
18
Platform
Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
Run the app (with ca/cert sha1 signed)
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
I am looking for workarounds. I expected the workaround to work
What do you see instead?
ciphers: "DEFAULT:@SECLEVEL=0"
isn't working.
Additional information
What are the possible workarounds I have as it will be difficult to update the certs/ca (or will take time given the huge infra) ?
can I build node v18 with openssl 1.x?
or is there any possible workaround?
The same issue in mac or ubuntu 20
Beta Was this translation helpful? Give feedback.
All reactions