diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 4afb6d27d38706..03f34a29a12cc4 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1804,6 +1804,16 @@ added: v15.6.0 The issuer identification included in this certificate. +### `x509.issuerCertificate` + + +* Type: {X509Certificate} + +The issuer certificate (if known). Will be `undefined` if the issuer +certificate is not available. + ### `x509.keyUsage` + +* Returns: {X509Certificate} + +Returns the peer certificate as an {X509Certificate} object. + +If there is no peer certificate, or the socket has been destroyed, +`undefined` will be returned. + +### `tlsSocket.getX509Certificate()` + + +* Returns: {X509Certificate} + +Returns the local certificate as an {X509Certificate} object. + +If there is no local certificate, or the socket has been destroyed, +`undefined` will be returned. + ### `tlsSocket.isSessionReused()`