# Interface PeerCertificate

interface PeerCertificate {
ca: boolean;
raw: Buffer;
subject: Certificate;
issuer: Certificate;
valid_from: string;
valid_to: string;
serialNumber: string;
fingerprint: string;
fingerprint256: string;
fingerprint512: string;
ext_key_usage?: string[];
subjectaltname?: string;
infoAccess?: Dict<string[]>;
bits?: number;
exponent?: string;
modulus?: string;
pubkey?: Buffer;
asn1Curve?: string;
nistCurve?: string;
}

- Defined in node_modules/@types/node/tls.d.ts:43

#####
Index

### Properties

ca
raw
subject
issuer
valid_from
valid_to
serialNumber
fingerprint
fingerprint256
fingerprint512
ext_key_usage?
subjectaltname?
infoAccess?
bits?
exponent?
modulus?
pubkey?
asn1Curve?
nistCurve?

##
Properties

### ca

ca: boolean

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

#### Since

v18.13.0

- Defined in node_modules/@types/node/tls.d.ts:48

### raw

raw: Buffer

The DER encoded X.509 certificate data.

- Defined in node_modules/@types/node/tls.d.ts:52

### subject

subject: Certificate

The certificate subject.

- Defined in node_modules/@types/node/tls.d.ts:56

### issuer

issuer: Certificate

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

- Defined in node_modules/@types/node/tls.d.ts:60

### valid_from

valid_from: string

The date-time the certificate is valid from.

- Defined in node_modules/@types/node/tls.d.ts:64

### valid_to

valid_to: string

The date-time the certificate is valid to.

- Defined in node_modules/@types/node/tls.d.ts:68

### serialNumber

serialNumber: string

The certificate serial number, as a hex string.

- Defined in node_modules/@types/node/tls.d.ts:72

### fingerprint

fingerprint: string

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

- Defined in node_modules/@types/node/tls.d.ts:77

### fingerprint256

fingerprint256: string

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

- Defined in node_modules/@types/node/tls.d.ts:82

### fingerprint512

fingerprint512: string

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

- Defined in node_modules/@types/node/tls.d.ts:87

### `Optional` ext_key_usage

ext_key_usage?: string[]

The extended key usage, a set of OIDs.

- Defined in node_modules/@types/node/tls.d.ts:91

### `Optional` subjectaltname

subjectaltname?: string

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

- Defined in node_modules/@types/node/tls.d.ts:96

### `Optional` infoAccess

infoAccess?: Dict<string[]>

An array describing the AuthorityInfoAccess, used with OCSP.

- Defined in node_modules/@types/node/tls.d.ts:100

### `Optional` bits

bits?: number

For RSA keys: The RSA bit size.

For EC keys: The key size in bits.

- Defined in node_modules/@types/node/tls.d.ts:106

### `Optional` exponent

exponent?: string

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

- Defined in node_modules/@types/node/tls.d.ts:110

### `Optional` modulus

modulus?: string

The RSA modulus, as a hexadecimal string.

- Defined in node_modules/@types/node/tls.d.ts:114

### `Optional` pubkey

pubkey?: Buffer

The public key.

- Defined in node_modules/@types/node/tls.d.ts:118

### `Optional` asn1Curve

asn1Curve?: string

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.

- Defined in node_modules/@types/node/tls.d.ts:126

### `Optional` nistCurve

nistCurve?: string

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

- Defined in node_modules/@types/node/tls.d.ts:131