Archived Forum Post

Index of archived forum posts

Question:

failed to conect ftps chilkat 9.5.0.46 and higher

Jun 23 '16 at 13:49

HI, i can`t connect to ftps server using the ftp2 compoment, using the last release version. In the chilkat log :

  checkServerCertRequirement:
        (leaveContext)
    Secure Channel Established.
    sendCommand:
        prepControlChannel:
            (leaveContext)
        sendingCommand: PBSZ 0
        (leaveContext)
    readCommandResponse:
        Message not long enough for the MAC.
        Invalid MAC
        macLen: 20
        macLen2: 0
        dbMacSize: 20
        sendFatalAlert:
            sendAlert:
                (leaveContext)
            Closing connection after sending fatal TLS alert.
            terminateConnection:
                (leaveContext)
            (leaveContext)
        Failed to receive more TLS applicaton data.
        Failed to receive more bytes.
        Failed to read FTP control channel reply.
        (leaveContext)

the c# code:
Chilkat.Ftp2 ftpDestino = new Chilkat.Ftp2(); ftpDestino.DebugLogFilePath = "f://chillog.txt"; ftpDestino.Hostname = "*****.com"; ftpDestino.Username = "*5"; ftpDestino.Password = "S**6"; ftpDestino.Port = 50221; ftpDestino.KeepSessionLog = true;

        ftpDestino.AuthTls = true;

        if (ftpDestino.Connect())
        {
        }

the ftpDestino.ConnectFailReason is 201

In chilkat 9.5.0.45 works fine , but not in higher releases

the TlsCipherSuite is "TLS_RSA_WITH_AES_256_CBC_SHA"

Thanks


Answer

The only way I can help with this problem is to be able to reproduce it...