MailBee.NET Objects 7.2

CertificateStore Constructor (Byte[], String)

Opens an existing store of certificates from a memory footprint of a PFX (.P12, PKCS #12) file.

public CertificateStore(
   byte[] pfxData,
   string pfxPassword
);

Parameters

pfxData
A byte array containing the memory footprint of a PFX file.
pfxPassword
PFX password.

Remarks

You can use this constructor when you have PFX (.P12, PKCS #12) data in memory. For instance, if you upload PFX data to a web server and do not want to save it into a file.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException pfxData is a null reference (Nothing in Visual Basic).
MailBeeInvalidArgumentException storeData is a null reference (Nothing in Visual Basic).
MailBeeCertificateStoreWin32Exception Win32 returned an error during opening the certificate store.

See Also

CertificateStore Class | MailBee.Security Namespace | CertificateStore Constructor Overload List