tlsSocket.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.