Discuss this help topic in SecureBlackbox Forum

Import the storage from files in various formats

You can import the certificates from the data stream in various formats, and add them to the storage, automatically. Certificate storages can be saved to PKCS#7 and PFX (PKCS#12) formats. PKCS#7 format can contain only certificates (without private keys). PFX files contain certificates and private keys. PFX files are encrypted with password.

PKCS7 and PKCS12 are described in more details in the corresponding how-to article.

To import the certificates and private keys from the data stream to the certificate storage, call corresponding LoadFromStream*() or LoadFromBuffer*() methods of TElCustomCertStorage class or one of it's descendant classes (in SecureBlackbox all certificate storage classes are descendants of this class). Asterisk denotes format name (PKCS7 or PFX). You can load the certificates from the memory buffer or from the stream (be it file stream, or memory stream, or BLOB stream or some other stream).

When the certificates are loaded from the file, the certificates, which are already present in the storage, are preserved, i.e. new certificates are appended to the storage.

If you want to select, which certificates must be loaded, use intermediate TElMemoryCertStorage object to load multiple certificates, and then pick the necessary certificates from the storage and add them to the target storage.

How To articles about certificate storages

Discuss this help topic in SecureBlackbox Forum