Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot initialize NSS PKCS#11 module #81

Open
microshine opened this issue Aug 14, 2017 · 1 comment
Open

Cannot initialize NSS PKCS#11 module #81

microshine opened this issue Aug 14, 2017 · 1 comment
Labels

Comments

@microshine
Copy link
Contributor

const graphene = require("graphene-pk11");

const mod = graphene.Module.load("/usr/local/Cellar/nss/3.31/lib/libsoftokn3.dylib", "NSS");
mod.initialize();

try {
    const slots = mod.getSlots();

    console.log(slots);
} 
catch (e) {
    console.error(e);
}

mod.finalize();

Throws error

Error: CKR_ARGUMENTS_BAD:7
    at Error (native) C_Initialize:152
    at Error (native)
@microshine microshine added the bug label Aug 14, 2017
@catataw
Copy link

catataw commented Oct 19, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants