PeculiarVentures / graphene

A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript. (Keywords: Javascript, PKCS#11, Crypto, Smart Card, HSM)
MIT License
169 stars 34 forks source link

how can get ID of PKCS#11 object to use in Storage #138

Closed abdalahshaban07 closed 3 years ago

abdalahshaban07 commented 3 years ago

how can get ID of PKCS#11 object to use in Storage

microshine commented 3 years ago
  1. Use SessionObject.getAttribute
    console.log(sessionObject.getAttribute("id"));
  2. Convert SessionObject to Data and use id property
    const data = sessionObject.toType();
    console.log(data.id);
abdalahshaban07 commented 3 years ago

Cannot read property 'C_GetAttributeValue' of undefined