Problem
SSL connection fails with and error:
SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:ssl/statem/extensions.c:948
openssl is used
Solution
Save the below script as a file and use it when making an SSL connection:
openssl_conf = default_conf
[ default_conf ]
ssl_conf = ssl_sect
[ssl_sect]
system_default = ssl_default_sect
[ssl_default_sect]
Options = UnsafeLegacyRenegotiation
OPENSSL_CONF=/path/to/the/config/file/above <command>