SSLFTPCertificatePromptForCertificate(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(
bool promptForPrivateKey
)
Public Shared Function PromptForCertificate (
promptForPrivateKey As Boolean
) As SSLFTPCertificate
public:
static SSLFTPCertificate^ PromptForCertificate(
bool promptForPrivateKey
)
static member PromptForCertificate :
promptForPrivateKey : bool -> SSLFTPCertificate
- 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.