procedure ImportFromPKCS12(const FileName: string; const Password: string = ''); overload;

procedure ImportFromPKCS12(Stream: TStream; const Password: string = ''); overload;

Description

Imports data from a stream or a PKCS#12 format file, usually with the .p12 or .pfx extension. In this format, the certificate chain and their keys are stored within a single file in either binary or text form. If the import is successful, all of them will be added to the storage and will be available in the Certificates and Keys properties.

 

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.
Password - Specifies the password used to decrypt the imported data.

 

See also

 

ImportCertificatesFromPEMCollection

Certificates

Keys

TScCertificate

SecureBridge Components, Copyright © 2007-2025 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support