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.

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

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.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.remoteFamily

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

tlsSocket.remoteAddress

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

tlsSocket.remotePort

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

tlsSocket.getSession()

tlsSocket.getSession() Returns the ASN.1 encoded TLS session or undefined if none was negotiated. Could be used to speed up handshake establishment when reconnecting to the server.

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.