Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomCertificateManager.ExportToPFXFile

function ExportToPFXFile(const aFilename : string; const aPassword : UnicodeString; const aEndEntityCert: iCertificate; aFriendlyName : UnicodeString = ''; aProviderName : UnicodeString = ''; aUsePBES2 : Boolean = True) : Boolean;
Export aEndEntityCert together with its private key (RSA only - fails if no RSA private key is held) and its CA chain to a password-protected PFX file. Use to hand off a credential to another system/tool. aFriendlyName/ aProviderName set the PKCS#12 bag attributes. aUsePBES2 (default True) protects the key and the certificates with PBES2 (PBKDF2-HMAC-SHA256, AES-256-CBC); False selects the legacy PKCS#12 schemes (3DES for the key, 40-bit RC2 for the certificates) for an importer that reads nothing else.