login about faq

Hi I am trying desperately for days to connect to an FTP server expand over SSL

The server requires the new SSL version and with the FTPRush I can after the exchange of libssl etc also connect properly.

Unfortunately, I do not get it back on the Chilkat library. Can you tell me what am I doing wrong?

I have already AuthTLS, but AuthSSL tried everything without success

Dim ftp As New Chilkat.Ftp2()

    Dim success As Boolean

    '  Any string unlocks the component for the 1st 30-days.
    success = ftp.UnlockComponent("Anything for 30-day trial")
    If (success <> True) Then
        TextBox1.Text = TextBox1.Text & ftp.LastErrorText & vbCrLf
        Exit Sub
    End If

    '  If this example does not work, try using passive mode
    '  by setting this to True.
    ftp.Passive = False

    ftp.Hostname = "7x.xxx.xxx.xx6"
    ftp.Username = "Askerion"
    ftp.Password = "xxxxxx"
    ftp.Port = 3008

    ftp.AuthSsl = True

    '  Connect and login to the FTP server.
    success = ftp.ConnectOnly()
    If (success <> True) Then
        MsgBox(ftp.LastErrorText)
        Exit Sub
    Else
        '  LastErrorText contains information even when
        '  successful. This allows you to visually verify
        '  that the secure connection actually occurred.
        TextBox1.Text = TextBox1.Text & ftp.LastErrorText & vbCrLf
    End If

    MsgBox("FTPS Channel Established!")

    '  Do whatever you're doing to do ...
    '  upload files, download files, etc...

    ftp.Disconnect()

ErrorLog: ChilkatLog: ConnectOnly_Ftp2: DllDate: Jan 21 2015 ChilkatVersion: 9.5.0.47 UnlockPrefix: Anything for 30-day trial Username: MDKHOME-001:Askerion Architecture: Little Endian; 32-bit Language: .NET 4.5 VerboseLogging: 0 ProgressMonitoring: enabled: yes heartbeatMs: 0 sendBufferSize: 65536 --ProgressMonitoring ImplicitSsl: 0 AuthTls: 0 AuthSsl: 1 Hostname: 7X.XXX.XX.XX Port: 3008 IdleTimeoutMs: 60000 ConnectTimeout: 60 socketOptions: SO_SNDBUF: 8192 SO_RCVBUF: 8192 TCP_NODELAY: 1 --socketOptions readCommandResponse: replyLineQP: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31 commandResponse: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31 statusCode: 220 --readCommandResponse initialStatus: 220 initialResponse: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31 converting to secure connection... authTls: sendCommand: sendingCommand: AUTH SSL --sendCommand readCommandResponse: replyLineQP: 234 AUTH SSL successful commandResponse: 234 AUTH SSL successful statusCode: 234 --readCommandResponse ssl_protocol: 0 clientHandshake: clientHandshake2: readHandshakeMessages: processAlert: TlsAlert: level: fatal descrip: handshake failure --TlsAlert Closing connection in response to fatal SSL/TLS alert. --processAlert Aborting handshake because of fatal alert. --readHandshakeMessages --clientHandshake2 --clientHandshake Client handshake failed. (1) connectionClosed: 0 Failed to convert channel to SSL/TLS --authTls Failed to connect to FTP server. Failed. --ConnectOnly_Ftp2 --ChilkatLog

asked Feb 12 '15 at 10:24

Askerion's gravatar image

Askerion
1


Please be sure to post LastErrorText's in "pre" tag so that it's readable.

I would need the IP address to test connecting via ConnectOnly (no authentication)..

link

answered Feb 12 '15 at 10:54

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Hello, the Log and the Ip are (show log)

    ChilkatLog:
  Connect_Ftp2:
    DllDate: Jan 21 2015
    ChilkatVersion: 9.5.0.47
    UnlockPrefix: Anything for 30-day trial
    Username: MDKHOME-001:Askerion
    Architecture: Little Endian; 32-bit
    Language: .NET 4.5
    VerboseLogging: 0
    ProgressMonitoring:
      enabled: yes
      heartbeatMs: 0
      sendBufferSize: 65536
    --ProgressMonitoring
    ImplicitSsl: 0
    AuthTls: 0
    AuthSsl: 1
    Hostname: 77.247.178.26
    Port: 3008
    IdleTimeoutMs: 60000
    ConnectTimeout: 60
    socketOptions:
      SO_SNDBUF: 8192
      SO_RCVBUF: 8192
      TCP_NODELAY: 1
    --socketOptions
    readCommandResponse:
      replyLineQP: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31
      commandResponse: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31
      statusCode: 220
    --readCommandResponse
    initialStatus: 220
    initialResponse: 220 $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31
    converting to secure connection...
    authTls:
      sendCommand:
        sendingCommand: AUTH SSL
      --sendCommand
      readCommandResponse:
        replyLineQP: 234 AUTH SSL successful
        commandResponse: 234 AUTH SSL successful
        statusCode: 234
      --readCommandResponse
      ssl_protocol: 0
      clientHandshake:
        clientHandshake2:
          readHandshakeMessages:
            processAlert:
              TlsAlert:
                level: fatal
                descrip: handshake failure
              --TlsAlert
              Closing connection in response to fatal SSL/TLS alert.
            --processAlert
            Aborting handshake because of fatal alert.
          --readHandshakeMessages
        --clientHandshake2
      --clientHandshake
      Client handshake failed. (1)
      connectionClosed: 0
      Failed to convert channel to SSL/TLS
    --authTls
    Failed to connect to FTP server.
    Failed.
  --Connect_Ftp2
--ChilkatLog

link

answered Feb 12 '15 at 11:26

Askerion's gravatar image

Askerion
1

Have you found a solution? I just do not get out

link

answered Feb 14 '15 at 05:01

Askerion's gravatar image

Askerion
1

When I test, the initial TCP connection to 77.247.178.26:3008 succeeds, but then the server disconnects on the very first attempt to read the socket. (The first attempt to read has nothing to do with SSL/TLS, but is simply trying to receive the FTP server's greeting on the initial TCP connection. Once the greeting is received, if things proceeded further, Chilkat would've sent the "AUTH TLS" (or "AUTH SSL") and that's when the TLS handshake would begin. But I never even got to that point..

link

answered Feb 14 '15 at 09:50

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Hello, I have forgotten my IP is queried from where I connect. I sometimes look I free unlock all IPs

link

answered Feb 14 '15 at 13:26

Askerion's gravatar image

Askerion
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: Feb 12 '15 at 10:24

Seen: 863 times

Last updated: Feb 14 '15 at 13:26

powered by OSQA