[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>
Wed, 11 Jan 2023 16:42:19 +0000 (16:42 +0000)
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 03330e0120a291fc10e942f0d25f6f5af16f776f..65ae201e44aa60d77b8c9264fa9bf8611cd97ebd 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