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

    Interface Certificate

    A certificate the person chose (never the list of the computer).

    const [certificate] = await certificates();
    greet.textContent = `Signing as ${certificate.displayName}, valid until ${certificate.notAfter.toLocaleDateString()}`;
    interface Certificate {
        der: Uint8Array<ArrayBuffer>;
        chain: readonly Uint8Array<ArrayBuffer>[];
        fingerprint: string;
        displayName: string;
        issuerName: string;
        notBefore: Date;
        notAfter: Date;
        key: KeyDescription;
        algorithms: readonly SignatureAlgorithm[];
        profile: CertificateProfile;
    }
    Index
    der: Uint8Array<ArrayBuffer>

    DER bytes: what CMS certificates and signing-certificate-v2 need.

    chain: readonly Uint8Array<ArrayBuffer>[]

    Issuers, nearest first, leaf excluded; best effort, may be empty.

    fingerprint: string

    SHA-256 of der, 64 lowercase hex digits. Pass it to sign({ certificate }).

    displayName: string

    Holder name as the app shows it.

    issuerName: string

    Issuer common name, else organization.

    notBefore: Date
    notAfter: Date
    algorithms: readonly SignatureAlgorithm[]

    Algorithms this key can produce.