@websign/sdk - v0.1.0
    Preparing search index...

    Interface FakeCertificateOptions

    One certificate of the fake. Everything is optional; the defaults give a valid EC P-256 certificate of a fictional "Test Signer".

    installFakeWebSign({ certificates: [{ key: "RSA", icpBrasil: "A3", displayName: "Maria Test" }] });
    
    interface FakeCertificateOptions {
        key?: "RSA" | "EC";
        displayName?: string;
        issuerName?: string;
        notBefore?: Date;
        notAfter?: Date;
        icpBrasil?: string;
        eidas?: { qualified: boolean; qscd: boolean; types: readonly EidasType[] };
        keyStorage?: KeyStorage;
    }
    Index
    key?: "RSA" | "EC"

    Default "EC" (P-256, ECDSA); "RSA" is 2048 bits with PKCS#1 v1.5 and PSS.

    displayName?: string

    Holder name; default "Test Signer EC (fake)" or "Test Signer RSA (fake)".

    issuerName?: string

    Default "WebeSign Testing CA (fake)".

    notBefore?: Date

    Default 2025-01-01.

    notAfter?: Date

    Default 2035-01-01. Put it in the past to test CertificateNotValid.

    icpBrasil?: string

    Reported ICP-Brasil class (profile only; the DER has no policy).

    eidas?: { qualified: boolean; qscd: boolean; types: readonly EidasType[] }

    Reported eIDAS profile (profile only).

    keyStorage?: KeyStorage

    Default "hardware", like a token.