Skip to main content

PeerCertificate

interface PeerCertificate

Properties Jump to heading

true if a Certificate Authority (CA), false otherwise.

The DER encoded X.509 certificate data.

The certificate subject.

The certificate issuer, described in the same terms as the subject.

The date-time the certificate is valid from.

The date-time the certificate is valid to.

The certificate serial number, as a hex string.

The SHA-1 digest of the DER encoded certificate. It is returned as a : separated hexadecimal string.

The SHA-256 digest of the DER encoded certificate. It is returned as a : separated hexadecimal string.

The SHA-512 digest of the DER encoded certificate. It is returned as a : separated hexadecimal string.

The extended key usage, a set of OIDs.

A string containing concatenated names for the subject, an alternative to the subject names.

optional
Jump to headinginfoAccess: Dict<string[]>

An array describing the AuthorityInfoAccess, used with OCSP.

optional
Jump to headingbits: number

For RSA keys: The RSA bit size.

For EC keys: The key size in bits.

optional
Jump to headingexponent: string

The RSA exponent, as a string in hexadecimal number notation.

optional
Jump to headingmodulus: string

The RSA modulus, as a hexadecimal string.

optional
Jump to headingpubkey: Buffer

The public key.

The ASN.1 name of the OID of the elliptic curve. Well-known curves are identified by an OID. While it is unusual, it is possible that the curve is identified by its mathematical properties, in which case it will not have an OID.

The NIST name for the elliptic curve, if it has one (not all well-known curves have been assigned names by NIST).

Back to top