edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SSLFTPCertificatePromptForCertificate(Boolean) Method

Prompts the user for a certificate file and a matching private key.

Definition

Namespace: EnterpriseDT.Net.Ftp.Ssl
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public static SSLFTPCertificate PromptForCertificate(
	bool promptForPrivateKey
)

Parameters

promptForPrivateKey  Boolean
Should the user also be prompted for a private key

Return Value

SSLFTPCertificate
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