Miroshin Stepan
Miroshin Stepan
 ### index.js ```js const electron = require("electron"); const graphene = require("graphene-pk11"); const { BrowserWindow } = electron; const mod = graphene.Module.load("/usr/local/lib/softhsm/libsofthsm2.so", "SoftHSM"); mod.initialize(); const slots = mod.getSlots(true); console.log(slots); mod.finalize();...
There can be another problem with Yubico. I've got it on Windows. Their pkcs11 lib depends of libeay32 and piv libs. I fixed it by coping those libs to electron...
try to use `otool -L ` command to check it maybe you need to have other yubico libs near the pkcs11 lib
I tried it with my Yubikey NEO 
Have you tried to add dep lib to the same folder where pkcs11 lib is?
Graphene uses only one native plugin - `pkcs11js`. Could you try to build `pkcs11js` manually? It can show more info about problem ``` git clone https://github.com/PeculiarVentures/pkcs11js.git cd pkcs11js npm install...
https://github.com/chjj/pty.js/issues/60
@netmiller Did it help with `MSB4132` error?
I checked it on my Windows 10. It works 
Yubico PKCS#11 doesn't support `CKA_SUBJECT` attribute https://github.com/Yubico/yubico-piv-tool/blob/127227fe4c705db9173254c20eb3fcb5085d13c6/ykcs11/objects.c#L538 You can use [pkijs](https://www.npmjs.com/package/pkijs) to parse X509 certificate and get it's name - [X509 certificate parsing](https://github.com/PeculiarVentures/fortify-web/blob/master/src/helpers/cert_helper.js#L224) - [X500 name to string](https://github.com/PeculiarVentures/fortify-web/blob/master/src/helpers/cert_helper.js#L130)