ezxmldsig for Node.js - v2.0.0
    Preparing search index...

    Function createSeal

    • Seals files: an ASiC-E container that holds them, its manifest, and a XAdES-B-B signature over them.

      Parameters

      • files: readonly SealFile[]

        The files to seal, in the order of the container.

      • signKey: PemSource

        The private key, a PEM file or content.

      • signCert: PemSource

        The certificate of the key, a PEM file or content; the certificates that follow the first one are embedded as its chain.

      • signKeyPassword: string | null

        The password of the key, or null.

      • options: SealOptions = {}

      Returns Buffer

      The container (.asice).

      On a misuse: no file, a name or a media type that cannot be sealed, a key that does not match the certificate, an algorithm that does not suit the key, a certificate that cannot sign at signingTime.