summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorEwoud Kohl van Wijngaarden <[email protected]>2024-01-05 15:58:59 +0100
committergit <[email protected]>2024-01-17 16:41:47 +0000
commit6213ab1a51387fd9cdcb5e87908722f3bbdf78cb (patch)
treedddad16e41146eb21cfc5f6c82bafebf0a695ed5 /test/openssl
parent947194aacb3b82602eab63b92fbe5876f10c5640 (diff)
[ruby/openssl] Only set min_version on OpenSSL < 1.1.0
Both Red Hat and Debian-like systems configure the minimum TLS version to be 1.2 by default, but allow users to change this via configs. On Red Hat and derivatives this happens via crypto-policies[1], which in writes settings in /etc/crypto-policies/back-ends/opensslcnf.config. Most notably, it sets TLS.MinProtocol there. For Debian there's MinProtocol in /etc/ssl/openssl.cnf. Both default to TLSv1.2, which is considered a secure default. In constrast, the SSLContext has a hard coded OpenSSL::SSL::TLS1_VERSION for min_version. TLS 1.0 and 1.1 are considered insecure. By always setting this in the default parameters, the system wide default can't be respected, even if a developer wants to. This takes the approach that's also done for ciphers: it's only set for OpenSSL < 1.1.0. [1]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening https://github.com/ruby/openssl/commit/ae215a47ae
Diffstat (limited to 'test/openssl')
0 files changed, 0 insertions, 0 deletions