Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Throws error exception if PKCS11 library or PFX file is not found or failed to load.

Example

List certificates from PFX file

Code Block
languagejs
var certificates = $Crypto.ListCertificates('base64 encoded pfx content', 'password');

Example

List certificates from PKCS11 library

Code Block
languagejs
var certificates = $Crypto.ListCertificates({
    Filter: {
        CommonName: 'The Name'
        // SerialNumber : '1234'
    },
    Pin: '1111',
    Library: '<path to PKCS11 library>'
});