procedure ImportCertificatesFromPEMCollection(const FileName: string; NamePrefix: string = ''); overload;
procedure ImportCertificatesFromPEMCollection(Stream: TStream; const NamePrefix: string = ''); overload;
Description
Imports certificates from a stream or a PEM-format file, usually with the .pem extension. In this format, a group of certificates is stored inside a single text file encoded in base64. If the import is successful, all certificates will be added to the storage and will be available in the Certificates properties.If your file contains only one certificate, you can manually create the TScCertificate object and use its ImportFrom method.
Parameters
• | FileName - Determines the name of the file from which the certificates and keys will be imported. If the file does not exist, an exception will be raised. |
• | Stream - Identifies a pointer to the stream that contains data for importing the certificates and keys. |
• | NamePrefix - Specifies a prefix name. Certificates added to the Certificates list will have the name NamePrefix_XX, where XX is the certificate's sequential number. If this parameter is not set, the prefix will be equal to the file name without the extension. |
See also