Skip to main content
method TLSSocket.prototype.getX509Certificate
TLSSocket.prototype.getX509Certificate(): X509Certificate | undefined
Deprecated

Returns the local certificate as an X509Certificate object.

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

Return Type

X509Certificate | undefined
Back to top