Saves the CertificateStore as a PFX encoded file.
[Visual Basic]
Public Sub ToPfxFile( _
ByVal filename As String, _
ByVal password As String, _
ByVal exportPrivateKeys As Boolean _
)
If the specified file already exists, the method will throw an exception.
Exception Type | Condition |
---|---|
ArgumentNullException | filename or password is a null reference (Nothing in Visual Basic). |
CertificateException | An error occurs while exporting the certificate store. |
IOException | An error occurs while writing the data to the file. |
CertificateStore Class | CertificateStore Members | Org.Mentalis.Security.Certificates Namespace