method TLSSocket.prototype.getPeerCertificate
Jump to headingTLSSocket.prototype.getPeerCertificate(detailed: true): DetailedPeerCertificateReturns an object representing the peer's certificate. If the peer does not
provide a certificate, an empty object will be returned. If the socket has been
destroyed, null will be returned.
If the full certificate chain was requested, each certificate will include anissuerCertificate property containing an object representing its issuer's
certificate.
Parameters Jump to heading
Jump to headingdetailed: trueInclude the full certificate chain if true, otherwise include just the peer's certificate.
Return Type Jump to heading
A certificate object.
Jump to headingTLSSocket.prototype.getPeerCertificate(detailed?: false): PeerCertificateParameters Jump to heading
optional
Jump to headingdetailed: falseReturn Type Jump to heading
Jump to headingTLSSocket.prototype.getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificateParameters Jump to heading
optional
Jump to headingdetailed: boolean