Miroshin Stepan

Results 394 comments of Miroshin Stepan

this is strange 1. PKCS#11 libraries support own loggers. You can try to enable it and get additional information about that error 2. You can try to use another mechanism...

@spanmatej Please try `node-webcrypto-p11` module. ```js const { Crypto } = require("node-webcrypto-p11"); async function main() { const crypto = new Crypto({ library: "personal64.dll", slot: 1, pin: "1234", }); const alg...

@spanmatej What about `node-webcrypto-p11` application. Does it throw the same exception?

I found some information about `personal64.dll` logging https://blog.goranrakic.com/uploads/pkcs11_putanje.pdf | Name | Windows 32bit | Windows 64bit | |-------|----------------|----------------| | Nexus Personal | `C:\Program Files (x86)\Personal\bin\personal.dll` | `C:\Program Files (x86)\Personal\bin64\personal64.dll` |...

Run this command to start Fortify with enabled logging for `pvpkcs11.dylib` ``` PV_PKCS11_ERROR=1, PV_PKCS11_ERROR_LEVEL=7 open /Applications/Fortify.app/ ``` You can find a log file in `/tmp/PVPKCS11.log`

That should work. Have you checked the global `tmp` folder? ``` PV_PKCS11_ERROR=1, PV_PKCS11_ERROR_LEVEL=7 open /Applications/Fortify.app open /tmp/PVPKCS11.log ```

Are you sure that OpenSC supports this card? I found only 2 ATRs in OpenSC source code which starts with "3b:d6" https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/card-asepcos.c#L41-L42 Can you try opensc-tools for your card getting?

Do you see certificates from your card in My storage from `certmgr.msc`? Fortify uses Windows API `crypt32.dll` for card reading but it doesn't support CSP providers (current version supports KSP...

@Swhite215 Do you have a log file? It's not clear why you've got that error I've got a test result. It works fine for me ```log npm i pkcs11js >...

Strange error from the log `Error: unable to verify the first certificate`. Try to disable certificate validation using [NODE_TLS_REJECT_UNAUTHORIZED](https://nodejs.org/api/cli.html#cli_node_tls_reject_unauthorized_value) environment variable ``` set NODE_TLS_REJECT_UNAUTHORIZED=0 npm install pkcs11js ```