Opensearch dashboards.iopensearchdashboardssocket.getpeercertificate 2
Home > opensearch-dashboards > IOpenSearchDashboardsSocket > getPeerCertificate
IOpenSearchDashboardsSocket.getPeerCertificate() method
Returns an object representing the peer's certificate. The returned object has some properties corresponding to the field of the certificate. If detailed argument is true the full chain with issuer property will be returned, if false only the top certificate without issuer property. If the peer does not provide a certificate, it returns null.
Signature:
getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate | null;
Parameters
Parameter | Type | Description |
---|---|---|
detailed | boolean | If true; the full chain with issuer property will be returned. |
Returns:
PeerCertificate | DetailedPeerCertificate | null
An object representing the peer's certificate.