...
Throws error exception if PKCS11 library or PFX file is not found or failed to load.
Example
List certificates from PFX file
Code Block | ||
---|---|---|
| ||
var certificates = $Crypto.ListCertificates('base64 encoded pfx content', 'password'); |
Example
List certificates from PKCS11 library
Code Block | ||
---|---|---|
| ||
var certificates = $Crypto.ListCertificates({
Filter: {
CommonName: 'The Name'
// SerialNumber : '1234'
},
Pin: '1111',
Library: '<path to PKCS11 library>'
}); |