Archived Forum Post

Index of archived forum posts

Question:

Possible issue with cloudflare (SSL , .NET)

Dec 28 '15 at 19:21

Hello.

I am using the .net (2.0) DLL (v9.2.1.0) for some years now and have zero problems. Our program connects with HTTPS to our servers through cloudflare and with the above version everything works OK.

I just tried the latest version (v9.5.0.48) without any changes in my code and the dll fails to do a proper handshake with cloudflare. The same code works OK with any https IP not passing through cloudflare. I tried playing with SslProtocol but changes nothing. I am using the paid version (always doing .UnlockComponent) if that matters. Can you make out something from the logs?

  SynchronousRequest:
    DllDate: Mar  6 2015
    ChilkatVersion: 9.5.0.48
    UnlockPrefix: PRIVENHttp
    Username: JSDESKTOP:jousis
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 0
    domain: login.businesscloud.gr
    port: 443
    ssl: 1
    httpRequest:
      httpVersion: 1.1
      verb: POST
      path: /login/forosindesi
      contentType: multipart/form-data
      charset: windows-1253
      sendCharset: 0
      mimeHeader: 
      requestParams:
        requestItem:
          name: ACTION
          value: LOGIN
        --requestItem
        requestItem:
          name: PRINTERNAME
          value: tax_demobc
        --requestItem
        requestItem:
          name: PRINTERPASS
          value: 12345
        --requestItem
        requestItem:
          name: VERSION
          value: 69
        --requestItem
        requestItem:
          name: MACADDRESS
          value: 
        --requestItem
      --requestParams
    --httpRequest
    readTimeout: 20
    connectTimeout: 20
    approxRequestSize: 318
    fullRequest:
      a_synchronousRequest:
        generateRequest:
          httpRequestGenStartLine:
            genStartLine:
              startLine: POST /login/forosindesi HTTP/1.1
            --genStartLine
          --httpRequestGenStartLine
          addCookies:
            Not auto-adding cookies.
            sendCookies: 1
            cookieDir: 
          --addCookies
          genMultipartFormData:
            requestParam:
              name: ACTION
            --requestParam
            requestParam:
              name: PRINTERNAME
            --requestParam
            requestParam:
              name: PRINTERPASS
            --requestParam
            requestParam:
              name: VERSION
            --requestParam
            requestParam:
              name: MACADDRESS
            --requestParam
          --genMultipartFormData
        --generateRequest
        fullHttpRequest:
          domain: login.businesscloud.gr
          port: 443
          ssl: 1
          openHttpConnection:
            Opening connection directly to HTTP server.
            httpHostname: login.businesscloud.gr
            httpPort: 443
            ssl: 1
            socket2Connect:
              connect2:
                connectImplicitSsl:
                  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. (3)
                --connectImplicitSsl
                ConnectFailReason: 0
              --connect2
            --socket2Connect
            ConnectFailReason: 0
          --openHttpConnection
        --fullHttpRequest
        success: 0
      --a_synchronousRequest
      success: 0
    --fullRequest
    totalTime: Elapsed time: 250 millisec
    Failed.
  --SynchronousRequest
--ChilkatLog

Answer

I get the same thing on v9.5.0.54 when making a request to my website secured with Comodo SSL.

I've run several tests on the SSL and all report that it is setup correctly.

Did you find a solution to this?


Answer

This new build should resolve it:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet2-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet2-9.5.0-x64.zip


Answer

I went back to my old code and everything worked ok with this 9.5.0 without changing anything else. Great job !