SSLFTPCertificatePromptForCertificate(Form, String, Boolean) Method
Prompts the user for a certificate file and a matching private key.
Namespace: EnterpriseDT.Net.Ftp.SslAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
public static SSLFTPCertificate PromptForCertificate(
Form parent,
string dialogTitle,
bool promptForPrivateKey
)
Public Shared Function PromptForCertificate (
parent As Form,
dialogTitle As String,
promptForPrivateKey As Boolean
) As SSLFTPCertificate
public:
static SSLFTPCertificate^ PromptForCertificate(
Form^ parent,
String^ dialogTitle,
bool promptForPrivateKey
)
static member PromptForCertificate :
parent : Form *
dialogTitle : string *
promptForPrivateKey : bool -> SSLFTPCertificate
- parent Form
- Parent form (may be null)
- dialogTitle String
- Title of dialog box
- promptForPrivateKey Boolean
- Should the user also be prompted for a private key
SSLFTPCertificateAn instance of SSLFTPCertificate with the associated private key.
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.