tls_server.address()

server.address() Returns the bound address, the address family name, and port of the server as reported by the operating system. See net.Server.address() for more information.

tls_server.close()

server.close([callback]) Stops the server from accepting new connections. This function is asynchronous, the server is finally closed when the server emits a 'close' event. Optionally, you can pass a callback to listen for the 'close' event.

tls_server.addContext()

server.addContext(hostname, context) Add secure context that will be used if the client request's SNI hostname matches the supplied hostname (wildcards can be used). context can contain key, cert, ca or any other properties from tls.createSecureContext() options argument.

tlsSocket.setMaxSendFragment()

tlsSocket.setMaxSendFragment(size) Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512). Returns true on success, false otherwise. Smaller fragment sizes decrease the buffering latency on the client: larger fragments are buffered by the TLS layer until the entire fragment is received and its integrity is verified; large fragments can span multiple roundtrips and their processing can be delayed due to packet loss or reordering. However, smaller fragments add extr

tlsSocket.renegotiate()

tlsSocket.renegotiate(options, callback) Initiate TLS renegotiation process. The options object may contain the following fields: rejectUnauthorized, requestCert. (See [tls.createServer ()][] for details.) callback(err) will be executed with null as err, once the renegotiation is successfully completed. NOTE: Can be used to request peer's certificate after the secure connection has been established. ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handsha

tlsSocket.remoteAddress

tlsSocket.remoteAddress The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'.

tlsSocket.remoteFamily

tlsSocket.remoteFamily The string representation of the remote IP family. 'IPv4' or 'IPv6'.

tlsSocket.remotePort

tlsSocket.remotePort The numeric representation of the remote port. For example, 443.

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.

tlsSocket.getTLSTicket()

tlsSocket.getTLSTicket() NOTE: Works only with client TLS sockets. Useful only for debugging, for session reuse provide session option to tls.connect(). Returns the TLS session ticket or undefined if none was negotiated.