options{Object}rejectUnauthorized{boolean} If notfalse, the server certificate is verified against the list of supplied CAs. An'error'event is emitted if verification fails;err.codecontains the OpenSSL error code. Default:true.requestCert
callback{Function} Ifrenegotiate()returnedtrue, callback is attached once to the'secure'event. Ifrenegotiate()returnedfalse,callbackwill be called in the next tick with an error, unless thetlsSockethas been destroyed, in which casecallbackwill not be called at all.Returns: {boolean}
trueif renegotiation was initiated,falseotherwise.
The tlsSocket.renegotiate() method initiates a TLS renegotiation process.
Upon completion, the callback function will be passed a single argument
that is either an Error (if the request failed) or null.
This method can be used to request a peer’s certificate after the secure connection has been established.
When running as the server, the socket will be destroyed with an error after
handshakeTimeout timeout.
For TLSv1.3, renegotiation cannot be initiated, it is not supported by the protocol.
