methodTsmCustomTLSInternalServer.ExportToPFX
procedure ExportToPFX(AFileName: string; Password: ISecretKey = nil; ExportCert: iCertificate = nil; FriendlyName: string = ''; ProviderName: string = ''; ExtKeyUsage: ObjectIdentifierString = ''; Compatibility: Boolean = False);
Writes the identity currently held in MyCerts (a chosen leaf, its issuer chain and any CRLs found for them) out as a password-protected PKCS#12/PFX file, e.g. so it can be backed up or imported into another StreamSec component or a system certificate store. Works the same regardless of ClientOrServer since it only touches the certificate/key stores, not any live TLS session.