Skip to content

AddTrustedCertificate

Adds the specified certificate as a trusted root certificate.

1
$Crypto.AddTrustedCertificate(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 as a trusted root certificate.

Remarks

The certificate is added to the trusted root certificates to be used in verification operations.