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

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public CertificateStore(
	byte[] pfxData,
	string pfxPassword
)

Parameters

pfxData
Type: SystemByte
A byte array containing the memory footprint of a PFX file.
pfxPassword
Type: SystemString
PFX password.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionpfxData is a null reference (Nothing in Visual Basic).
MailBeeInvalidArgumentExceptionpfxData is a null reference (Nothing in Visual Basic).
MailBeeCertificateStoreWin32ExceptionWin32 returned an error during opening the certificate store.
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.
Note Note
In .NET Standard 2.0 edition and later, this constructor is no longer available (it's Win32-specific). Use CertificateStore(X509Store) instead.
See Also