tlsSocket.getProtocol()

tlsSocket.getProtocol()

Returns a string containing the negotiated SSL/TLS protocol version of the current connection. 'unknown' will be returned for connected sockets that have not completed the handshaking process. null will be returned for server sockets or disconnected client sockets.

Examples:

'SSLv3'
'TLSv1'
'TLSv1.1'
'TLSv1.2'
'unknown'

See https://www.openssl.org/docs/manmaster/ssl/SSL_get_version.html for more information.

doc_Nodejs
2016-04-30 04:42:41
Comments
Leave a Comment

Please login to continue.