Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in .NET FTP by (180 points)
public FTPSSession(FTPSConfigClass config)
{

SSLFTPClient client = new SSLFTPClient();
client.RemoteHost = config.Server;
client.ControlPort = config.Port;
client.ClientCertificate = SSLFTPCertificate.CreateFromPEM(config.CertificateFilePath);
client.ClientCertificate.AssociatePrivateKey(config.PrivateKeyFilePath, config.PrivateKeyPassword );

this.Config = config;
this.Client = client;

}

Is producing the following error in production, but not in test.

Consistency error: Private key was not successfully associated with certificate
at d1.b(String A_0, String A_1, Boolean A_2)
at EnterpriseDT.Net.Ftp.Ssl.SSLFTPCertificate.AssociatePrivateKey(String pvkFileName, String password)
at Orion.Clearinghouse.Communication.Clients.FTP.SSL.FTPSSession..ctor(FTPSConfigClass config)

1 Answer

0 votes
by (162k points)
This error generally means the certificate does not have a private key.

Categories

...