Miroshin Stepan

Results 394 comments of Miroshin Stepan
trafficstars

![image](https://user-images.githubusercontent.com/7333669/34070636-a239c586-e27a-11e7-8207-fe863caf647a.png) ### 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 ![image](https://user-images.githubusercontent.com/7333669/34070815-76d236f0-e27d-11e7-8121-74f77de61f99.png)

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 ![image](https://user-images.githubusercontent.com/7333669/34114654-6498bce0-e424-11e7-8eeb-f2fb5c8440ec.png)

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)