[PATCH] Add a CipherString for nodejs
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Fri, 23 Sep 2022 20:39:50 +0000 (22:39 +0200)
committerJérémy Lal <kapouer@melix.org>
Tue, 25 Jun 2024 10:57:00 +0000 (12:57 +0200)
If the default security level is overwritten at build time of openssl
then it is needed to lower it again for nodejs in order to pass the
testsuite because it is using smoil keys.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Gbp-Pq: Topic build
Gbp-Pq: Name openssl_config_explicit_lower.patch

deps/openssl/openssl/apps/openssl.cnf

index 12bc40896ef2b590d7bedbdf89ee7a94d52901c1..e9b04958ff1188a6113c1472d327012ad7e4c548 100644 (file)
@@ -15,6 +15,7 @@ HOME                  = .
 
  # Use this in order to automatically load providers.
 openssl_conf = openssl_init
+nodejs_conf = nodejs_init
 
 # Comment out the next line to ignore configuration errors
 config_diagnostics = 1
@@ -388,3 +389,12 @@ oldcert = $insta::certout # insta.cert.pem
 # Certificate revocation
 cmd = rr
 oldcert = $insta::certout # insta.cert.pem
+
+[nodejs_init]
+ssl_conf = ssl_sect
+
+[ssl_sect]
+system_default = system_default_sect
+
+[system_default_sect]
+CipherString = DEFAULT:@SECLEVEL=1