Saves the Certificate as a PFX encoded buffer.
[Visual Basic]
Public Function ToPfxBuffer( _
ByVal password As String, _
ByVal withPrivateKeys As Boolean, _
ByVal withParents As Boolean _
) As Byte()
An array of bytes that represents the PFX encoded certificate.
Exception Type | Condition |
---|---|
ArgumentNullException | password is a null reference (Nothing in Visual Basic). |
CertificateException | An error occurs while exporting the certificate store -or- an error occurs while building the certificate chain -or- an error occurs while creating the store -or- an error occurs while adding the certificate to the store. |
Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace