Skip to content

PeerCertificate

[<Interface>]
type PeerCertificate =
    abstract member asn1Curve: string option with get, set
    abstract member bits: float option with get, set
    abstract member ca: bool with get, set
    abstract member exponent: string option with get, set
    abstract member ext_key_usage: string array option with get, set
    abstract member fingerprint: string with get, set
    abstract member fingerprint256: string with get, set
    abstract member fingerprint512: string with get, set
    abstract member infoAccess: Record<string,string array option> option with get, set
    abstract member issuer: Certificate with get, set
    abstract member modulus: string option with get, set
    abstract member nistCurve: string option with get, set
    abstract member pubkey: NonSharedBuffer option with get, set
    abstract member raw: NonSharedBuffer with get, set
    abstract member serialNumber: string with get, set
    abstract member subject: Certificate with get, set
    abstract member subjectaltname: string option with get, set
    abstract member valid_from: string with get, set
    abstract member valid_to: string with get, set
    static member Create (ca: bool, raw: NonSharedBuffer, subject: Certificate, issuer: Certificate, valid_from: string, valid_to: string, serialNumber: string, fingerprint: string, fingerprint256: string, fingerprint512: string, ?ext_key_usage: string array, ?subjectaltname: string, ?infoAccess: Record<string,string array option>, ?bits: float, ?exponent: string, ?modulus: string, ?pubkey: NonSharedBuffer, ?asn1Curve: string, ?nistCurve: string) : PeerCertificate
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member asn1Curve: string option with get, set

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.

abstract member bits: float option with get, set

For RSA keys: The RSA bit size.

For EC keys: The key size in bits.

abstract member ca: bool with get, set

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

@since v18.13.0

abstract member exponent: string option with get, set

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

abstract member ext_key_usage: string array option with get, set

The extended key usage, a set of OIDs.

abstract member fingerprint: string with get, set

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

abstract member fingerprint256: string with get, set

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

abstract member fingerprint512: string with get, set

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

abstract member infoAccess: Record<string,string array option> option with get, set

An array describing the AuthorityInfoAccess, used with OCSP.

abstract member issuer: Certificate with get, set

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

abstract member modulus: string option with get, set

The RSA modulus, as a hexadecimal string.

abstract member nistCurve: string option with get, set

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

abstract member pubkey: NonSharedBuffer option with get, set

The public key.

abstract member raw: NonSharedBuffer with get, set

The DER encoded X.509 certificate data.

abstract member serialNumber: string with get, set

The certificate serial number, as a hex string.

abstract member subject: Certificate with get, set

The certificate subject.

abstract member subjectaltname: string option with get, set

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

abstract member valid_from: string with get, set

The date-time the certificate is valid from.

abstract member valid_to: string with get, set

The date-time the certificate is valid to.

Methods

static member Create (ca: bool, raw: NonSharedBuffer, subject: Certificate, issuer: Certificate, valid_from: string, valid_to: string, serialNumber: string, fingerprint: string, fingerprint256: string, fingerprint512: string, ?ext_key_usage: string array, ?subjectaltname: string, ?infoAccess: Record<string,string array option>, ?bits: float, ?exponent: string, ?modulus: string, ?pubkey: NonSharedBuffer, ?asn1Curve: string, ?nistCurve: string) : PeerCertificate