Save certificate storage content to stream
Sometimes, for archival or transfer purpose, you might need to save a snapshot of your certificate storage to a stream. SecureBlackbox certificate storage classes (descendants of TElCustomCertStorage) support several storage formats.
Note that any non-exportable private keys associated with certificates contained in the storage won't be saved. Exportable keys will be exported though, provided that the export format supports storing private keys.
Let's assume you have a certStorage object of any storage type (e.g. TElMemoryCertStorage). You can export its contents in a variety of formats in the following ways: