PeculiarVentures / pvpkcs11

pvpkcs11 consists of a input validation library and a set of PKCS#11 implementations that wrap operating system and browser cryptographic implementations.
MIT License
32 stars 7 forks source link

Exception on getting keys from keychain #22

Closed microshine closed 7 years ago

microshine commented 7 years ago
Error: C_OpenSession
Pkcs11Exception: Error on SecItemCopyMatching
    at Open (../../src/osx/session.cpp:277)
    at Open (../../src/osx/session.cpp:292)
    at OpenSession (../../src/core/slot.cpp:169)

Error: CKR_FUNCTION_FAILED:6
    at Error (native) C_OpenSession:311
    at Slot.open (/Users/rmh/Downloads/electron-app/node_modules/graphene-pk11/build/slot.js:42:33)
    at WebCrypto.open (/Users/rmh/Downloads/electron-app/node_modules/node-webcrypto-p11/built/webcrypto.js:45:34)
    at new WebCrypto (/Users/rmh/Downloads/electron-app/node_modules/node-webcrypto-p11/built/webcrypto.js:29:14)