Codebase list kali-defaults / d545748
Customize openssl configuration to enable legacy providers by default One of the major change with OpenSSL 3.x is introduction of "Providers" to « collect together and make available algorithm implementations ». Some algorithms such as MD4, WHIRLPOOL and RIPEMD-160 are part of the "legacy provider", which is disabled by default. This change impacted Kali users who seem to rely on the MD4 algorithm in particular: - https://gitlab.com/kalilinux/packages/kali-tweaks/-/issues/27 - https://bugs.kali.org/view.php?id=7783 Therefore, with this commit we extend the scope of the "Wide Compatibility" mode to also include the legacy providers. While if users prefer "Strong Security", legacy providers are left disabled. For more details on the OpenSSL 3.x changes: - https://www.openssl.org/news/changelog.html#openssl-30 - https://www.openssl.org/docs/man3.0/man7/migration_guide.html Arnaud Rebillout 1 year, 10 months ago
2 changed file(s) with 19 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 # The configurations proposed here are only used if /etc/ssl/openssl.cnf has
1 # been modified so that ssl_sect.system_default points to one of them. The
2 # kali-tweaks tool lets you easily switch that configuration entry.
1 # been modified to make use of it. The kali-tweaks tool lets you easily switch
2 # between "Wide Compatibility" and "Strong Security" modes.
33 #
44 # By default a kali system should be configured for wide compatibility,
55 # to easily interact with servers using old vulnerable protocols.
88 MinProtocol = SSLv3
99 CipherString = ALL:@SECLEVEL=0
1010
11 [kali_wide_compatibility_providers]
12 default = default_sect
13 legacy = legacy_sect
14
1115 [kali_strong_security]
1216 MinProtocol = TLSv1.2
1317 CipherString = DEFAULT:@SECLEVEL=2
18
19 [kali_strong_security_providers]
20 default = default_sect
66
77 # Note that you can include other files from the main configuration
88 # file using the .include directive.
9 .include /etc/ssl/kali.cnf
9 #.include filename
1010
1111 # This definition stops the following lines choking if HOME isn't
1212 # defined.
4949 # Refer to the OpenSSL security policy for more information.
5050 # .include fipsmodule.cnf
5151
52 # For Kali
53 .include /etc/ssl/kali.cnf
54
5255 [openssl_init]
53 # providers = provider_sect
56 providers = kali_wide_compatibility_providers
5457 ssl_conf = ssl_sect
5558
5659 # List of providers to load
6871 # becomes unavailable in openssl. As a consequence applications depending on
6972 # OpenSSL may not work correctly which could lead to significant system
7073 # problems including inability to remotely access the system.
71 # [default_sect]
72 # activate = 1
74 [default_sect]
75 activate = 1
76
77 [legacy_sect]
78 activate = 1
7379
7480
7581 ####################################################################