I'm trying on a list of websites and trying to get the types of protocols that each website supports. However, I'm only able to retrieve from TLSv1 onwards.
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
osobj = SSL.Context(SSL.SSLv3_METHOD)
sock.connect((host, int(port)))
oscon = SSL.Connection(osobj, sock)
oscon.set_tlsext_host_name(host.encode())
oscon.set_connect_state()
oscon.do_handshake()
protocol = oscon.get_protocol_version_name() # If website supports SSLv2, it should return 'SSLv2'
I understand that openssl deprecated SSLv2 and SSLv3.
How can I then get the whole list of protocols supported by a website?