sudo vim /etc/ssl/openssl.cnf
at first line add
openssl_conf = default_conf
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# Note that you can include other files from the main configuration
# file using the .include directive.
#.include filename
at the end of line add
# identifier (optional, default: sha1)
[ default_conf ]
ssl_conf = ssl_sect
[ssl_sect]
system_default = ssl_default_sect
[ssl_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=0
its to solve the error message [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1123)