Certificate Constructor (Byte, CertFileType, String)
Loads the certificate from binary data and returns it as Certificate object.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Certificate(
	byte[] bytes,
	CertFileType fileType,
	string pfxFilePassword
)

Parameters

bytes
Type: SystemByte
Binary content of the certificate data.
fileType
Type: MailBee.SecurityCertFileType
The format of the certificate data.
pfxFilePassword
Type: SystemString
The .PFX (PKCS #12) file password, or a null reference (Nothing in Visual Basic) if fileType is not Pfx.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionbytes is a null reference (Nothing in Visual Basic).
MailBeeCertificateParsingExceptionbytes is not a certificate data of the specified format.
MailBeeCertificateWin32ExceptionWin32 returned an error during during processing the certificate data.
MailBeeLicenseExceptionMailBee.NET Security Powerup not licensed.
See Also