edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Loads the certificate and private key from a PKCS12 buffer.

Namespace: EnterpriseDT.Net.Ftp.Ssl
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public static SSLFTPCertificate CreateFromPKCS12(
	byte[] pkcs12Buffer,
	string pkcs12Password
)
Visual Basic
Public Shared Function CreateFromPKCS12 ( _
	pkcs12Buffer As Byte(), _
	pkcs12Password As String _
) As SSLFTPCertificate
Visual C++
public:
static SSLFTPCertificate^ CreateFromPKCS12(
	array<unsigned char>^ pkcs12Buffer, 
	String^ pkcs12Password
)

Parameters

pkcs12Buffer
Type: array<System..::..Byte>[]()[][]
pkcs12Password
Type: System..::..String

Return Value

The certificate object (including the private key).

Remarks

This PKCS12 buffer must contain the private key.

See Also