Skip to content

eID/eidsim.js errors #10

@m32

Description

@m32

unable to run with Smart Card Shell 3.18.61:
load("eID/eidsim.js");

due to error:
GPError: CMSGenerator (INVALID_TYPE/16) - "Passing a digestAlgorithmOID is deprecated. Please use a Java signing algorithm string (e.g. "SHA256withRSA") instead" in eID/eidsim.js#212

after changing:
gen.addSigner(dskey, dscert, new ByteString("id-sha256", OID), true);
to:
gen.addSigner(dskey, dscert, "SHA256withRSA", OID), true);

another error occurs:
GPError: CMSGenerator (INVALID_ARGUMENTS/0) - "cannot create signer: Supplied key (org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey) is not a RSAPrivateKey instance" in /eID/eidsim.js#212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions