Miroshin Stepan
Miroshin Stepan
You need to use `babel-polyfill`. `node-webcrypto-p11` uses `PKIjs` which doesn't work without babel module Add this line to your code ```js require("babel-polyfill") ```
You can extract a key from one slot and copy it to another (key must be extractable)
You can set `extractable` on the key generation and key importing
I'm talking about WebCrypto API `generateKey` and `importKey` functions. They allow to make keys extractable.
> is there any way where we can point the library to extract keys from 1 slot and then import to another You are using PKCS#11 library. PKCS#11 interface doesn't...
I'm using SoftHSM for developing and testing my Crypto projects. I've never seen corrupted slot in it. Do you know steps to do it?
Have you tried to enable SoftHSM logging to understand the real reson of CKR_GENERAL_ERROR exception?
`contentType` should be `id-signedData`. `contentInfo.content` keeps the content of `OCTET_STRING` ```js const contentInfo = AsnConvert.parse(file, TimeStampToken); assert.strictEqual(contentInfo.contentType, id_signedData); const tstInfo = AsnConvert.parse(contentInfo.content, TSTInfo); ``` ```asn SEQUENCE (2 elem) OBJECT IDENTIFIER...
> id_signedData and id_ct_tstInfo are the same. This is wrong. They are different ```asn id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } id-ct-TSTInfo OBJECT IDENTIFIER...
Please look at this TimeStamp ASN.1 structure. Use this website https://lapo.it/asn1js to parse your files