In cflinuxfs4 (based on Ubuntu Jammy), TLS versions below v1.2 are disabled in OpenSSL’s SECLEVEL=2
. For apps have to connect to external endpoint which is at TLS under v1.2 (for example the peer side TLS version can not be upgraded in short while for special reasons), TLS handshake will not succeed.
This is highly NOT recommended, only in the case peer side TLS can not be upgraded to TLS v1.2 or above. A workaround can be applied in container which is created based on cflinuxfs4. Steps as below:
The details of SECLEVEL can be found at
https://www.openssl.org/docs/man3.0/man3/SSL_CTX_set_security_level.html