Skip to content

AddCertificate

Adds the specified certificate to the context for later use.

1
$Crypto.AddCertificate(cert: `CommonName` : string

The common name of the certificate.

SerialNumber : string
The serial number of the certificate.

Logout() : void
Logs out from the PKCS11 device.

TryLogin(pin: string) : string
Tries to log in to the PKCS11 device with the given PIN.):void

Parameters

CommonName : string
The common name of the certificate.

SerialNumber : string
The serial number of the certificate.

Logout() : void
Logs out from the PKCS11 device.

TryLogin(pin: string) : string
Tries to log in to the PKCS11 device with the given PIN. cert
    The certificate to add to the context.

Remarks

The certificate is added to the context to be used later in signing or verification operations.