Default to TLS v1.2 in all TLS libraries in 20.04 LTS

Started running into this change since the last OpenSSL update in Ubuntu 20.04.2 last week. Been trying to apply the changes in config to /etc/ssl/openssl.cnf to no avail. also tried applying context.

my way of testing is either running

openssl s_client -connect google.com:443

or while I program on python trying a imaplib.IMAP4_SSL connection to a mail server say “outlook.office365.com

connection times out.

Is there a way for me to check if openssl is taking the configuration I setup ?