Certificate
A TLS certificate.
import { Certificate } from '@mobrowser/api';
Properties
subjectName
readonly subjectName: string;
The display name of the certificate subject: its common name, or its organization when the common name is empty.
issuerName
readonly issuerName: string;
The display name of the certificate issuer: its common name, or its organization when the common name is empty.
serialNumber
readonly serialNumber: string;
The serial number of the certificate as an uppercase hexadecimal string
without separators, such as '0A1B2C'.
validStart
readonly validStart: number;
The start of the certificate’s validity period, in seconds since the Unix epoch.
validExpiry
readonly validExpiry: number;
The end of the certificate’s validity period, in seconds since the Unix epoch.
fingerprint
readonly fingerprint: string;
The SHA-256 fingerprint of the certificate as an uppercase hexadecimal string without separators.
data
readonly data: string;
The PEM-encoded certificate, or an empty string if the certificate could not be encoded.