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)