PeculiarVentures / node-webcrypto-p11

A WebCrypto Polyfill for Node in typescript built on PKCS#11.
MIT License
44 stars 15 forks source link

Exporting Certificate Chain #51

Closed abrbhat closed 5 years ago

abrbhat commented 5 years ago

Is there a way to extract certificate chain from the hardware token through this library?

rmhrisk commented 5 years ago

Yes, well you can export the certificate but there’s no uniform way to store the chain. If the cert has AIAs they can be used to fetch the other certs.

https://github.com/PeculiarVentures/node-webcrypto-p11/blob/master/src/cert.ts#L104

abrbhat commented 5 years ago

Thought so. Fetching through AIA now. Thanks for the reply and for this amazing project!