You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a string containing the negotiated SSL/TLS protocol version of the current connection. The value 'unknown' will be returned for connected sockets that have not completed the handshaking process. The value null will be returned for server sockets or disconnected client sockets. See https://www.openssl.org/docs/man1.0.2/ssl/SSL\_get\_version.html for more information.
Renegotiates a connection to obtain the peer's certificate. This cannot be used when the protocol version is TLSv1.3.
8
+
9
+
<b>Signature:</b>
10
+
11
+
```typescript
12
+
renegotiate(options: {
13
+
rejectUnauthorized?: boolean;
14
+
requestCert?:boolean;
15
+
}): Promise<void>;
16
+
```
17
+
18
+
## Parameters
19
+
20
+
| Parameter | Type | Description |
21
+
| --- | --- | --- |
22
+
| options | <code>{</code><br/><code> rejectUnauthorized?: boolean;</code><br/><code> requestCert?: boolean;</code><br/><code> }</code> | The options may contain the following fields: rejectUnauthorized, requestCert (See tls.createServer() for details). |
23
+
24
+
<b>Returns:</b>
25
+
26
+
`Promise<void>`
27
+
28
+
A Promise that will be resolved if renegotiation succeeded, or will be rejected if renegotiation failed.
0 commit comments