edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Prompts the user for a certificate file and a matching private key.

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

Syntax

C#
public static SSLFTPCertificate PromptForCertificate(
	bool promptForPrivateKey
)
Visual Basic
Public Shared Function PromptForCertificate ( _
	promptForPrivateKey As Boolean _
) As SSLFTPCertificate
Visual C++
public:
static SSLFTPCertificate^ PromptForCertificate(
	bool promptForPrivateKey
)

Parameters

promptForPrivateKey
Type: System..::..Boolean
Should the user also be prompted for a private key

Return Value

An instance of SSLFTPCertificate with the associated private key.

Remarks

This method will first prompt for a certificate file of format CER, PEM or PFX. If the file is a PFX file it will then prompt for a password to access this file. If promptForPrivateKey is true then the user will be prompted for a private key file of the PVK format and a matching password.

See Also