Skip to main content

getPeerX509Certificate

method TLSSocket.prototype.getPeerX509Certificate
Jump to headingTLSSocket.prototype.getPeerX509Certificate(): X509Certificate | undefined

Returns the peer certificate as an X509Certificate object.

If there is no peer certificate, or the socket has been destroyed,undefined will be returned.

Return Type Jump to heading

X509Certificate | undefined
Back to top