Discuss this help topic in SecureBlackbox Forum

Add certificate to TElMemoryCertStorage

Adding a certificate to a TElMemoryCertStorage object is simple. Call the Add() method and pass your existing TElX509Certificate object as a parameter. The certificate object can have any origin, for example, it could have been loaded from a PFX file or from a PKCS11 device. certStorage.Add(cert, true); The second parameter tells SecureBlackbox whether it should copy the private key too, if it is available in the certificate object. Note that this parameter only affects keys physically contained in the certificate object, and makes no difference if the key is located elsewhere (hardware token, system store). In the latter case the reference to the key will be copied regardless of the value of the CopyPrivateKey parameter.

How To articles about certificate storages

Discuss this help topic in SecureBlackbox Forum