Node.js tlsSocket.renegotiate(options, callback)
- options < Object>
- rejectUnauthorized < boolean> If not false, the server certificate is verified against the list of supplied CAs. An ‘error’ event is emitted if verification fails; err.code contains the OpenSSL error code. Default: true.
- callback < Function> A function that will be called when the renegotiation request has been completed.
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.
更多内容请参考：Node.js tls 安全传输层，或者通过 点击对应菜单 进行查看；