I got this:
OPENSSLDIR: "/usr/lib/ssl"
Does
openssl list -providers mention "OpenSSL Legacy Provider" somewhere?
If not, then it appears that your configuration is not taking effect.
Also you may have to restart system services or reboot the computer to apply the new openssl settings to each program.