@@ -1271,8 +1271,9 @@ added: v5.0.0
12711271Returns an object describing ephemeral key agreement in [ perfect forward
12721272secrecy] [ ] on a client connection. It returns an empty object when the key
12731273agreement is not ephemeral. As this is only supported on a client socket;
1274- ` null ` is returned if called on a server socket. The supported types are ` 'DH' ` ,
1275- ` 'ECDH' ` , and ` 'TLSGroup' ` . For ` 'DH' ` and ` 'ECDH' ` , the object describes peer
1274+ ` null ` is returned if called on a server socket. Use
1275+ [ ` tlsSocket.getNegotiatedGroup() ` ] [ ] to get the negotiated group on a server
1276+ socket. The supported types are ` 'DH' ` , ` 'ECDH' ` , and ` 'TLSGroup' ` . For ` 'DH' ` and ` 'ECDH' ` , the object describes peer
12761277temporary key parameters. For ` 'TLSGroup' ` , the object identifies the negotiated
12771278TLS Supported Group used for key agreement when a peer temporary key object is
12781279not available.
@@ -1302,6 +1303,23 @@ provided by SSL/TLS is not desired or is not enough.
13021303Corresponds to the ` SSL_get_finished ` routine in OpenSSL and may be used
13031304to implement the ` tls-unique ` channel binding from [ RFC 5929] [ ] .
13041305
1306+ ### ` tlsSocket.getNegotiatedGroup() `
1307+
1308+ <!-- YAML
1309+ added: REPLACEME
1310+ -->
1311+
1312+ * Returns: {string|undefined} The name of the TLS group used for key
1313+ agreement, or ` undefined ` if no group was negotiated.
1314+
1315+ Returns the TLS Supported Group negotiated for key agreement, for example
1316+ ` 'X25519MLKEM768' ` , ` 'x25519' ` , or ` 'secp256r1' ` . Unlike
1317+ [ ` tlsSocket.getEphemeralKeyInfo() ` ] [ ] , this method works on both client and
1318+ server sockets. ` undefined ` is returned when the key agreement does not use a
1319+ group, such as with TLSv1.2 RSA key exchange, or before the handshake has
1320+ completed. With TLSv1.2 DHE key exchange, only the server socket reports the
1321+ group.
1322+
13051323### ` tlsSocket.getPeerCertificate([detailed]) `
13061324
13071325<!-- YAML
@@ -2714,6 +2732,8 @@ added: v0.11.3
27142732[ `tls.getCACertificates()` ] : #tlsgetcacertificatestype
27152733[ `tls.getCiphers()` ] : #tlsgetciphers
27162734[ `tls.rootCertificates` ] : #tlsrootcertificates
2735+ [ `tlsSocket.getEphemeralKeyInfo()` ] : #tlssocketgetephemeralkeyinfo
2736+ [ `tlsSocket.getNegotiatedGroup()` ] : #tlssocketgetnegotiatedgroup
27172737[ `tlsSocket.renegotiate()` ] : #tlssocketrenegotiateoptions-callback
27182738[ `x509.checkHost()` ] : crypto.md#x509checkhostname-options
27192739[ asn1.js ] : https://www.npmjs.com/package/asn1.js
0 commit comments