UPDATED - Betfair.com Login - Disabling TLS Ciphers - 3rd February 2020

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • clacherholiday2
    Junior Member
    • Feb 2020
    • 1

    #16
    I wont be able to fix this for 2 weeks now judging by the solutions posted elsewhere, I need physical access to the machine to make offline changes, absolutely fing furious.

    Ive been running the same system forever without a hint of a problem, why were these changes made now?
    Last edited by clacherholiday2; 05-02-2020, 07:49 AM.

    Comment

    • AlexX
      Junior Member
      • Aug 2012
      • 4

      #17
      Originally posted by chem View Post

      I got it. Windows Server 2008 is incompatible with TLS1.2
      for win2008 does not work. need a min win2012

      try to install it as an option win2008
      https://support.microsoft.com/en-gb/...rotocols-in-wi
      Last edited by AlexX; 05-02-2020, 07:59 AM.

      Comment

      • aron
        Junior Member
        • Feb 2020
        • 2

        #18
        My code...

        Dim postData AsString = _

        "username=" & My.Settings.Betfair_LOGIN & "&password=" & My.Settings.Betfair_PASS

        Dim cert AsNewX509Certificate2(My.Settings.FilePath_DB & "client-2048.p12", "")

        Dim request AsHttpWebRequest = _

        WebRequest.Create("https://identitysso-cert.betfair.com/api/certlogin")

        request.Method = "POST"

        request.ContentType = "application/x-www-form-urlencoded"

        request.Headers.Add("X-Application: " & My.Settings.Betfair_APPKEY)

        request.ClientCertificates.Add(cert)

        request.Accept = "application/json"

        Using dataStream AsStream = request.GetRequestStream()

        Using writer AsNew _

        StreamWriter(dataStream, Encoding.[Default])

        writer.Write(postData)

        EndUsing

        EndUsing

        … doesn't work. Please help

        Comment

        • MV6man
          Junior Member
          • Jun 2019
          • 2

          #19
          Hey Aron, I got mine to work (I'm running a NET version with TLS 1.2 btw) by inserting the line from the previous page so try:



          Dim postData AsString = _

          "username=" & My.Settings.Betfair_LOGIN & "&password=" & My.Settings.Betfair_PASS

          Dim cert AsNewX509Certificate2(My.Settings.FilePath_DB & "client-2048.p12", "")

          ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12


          Dim request AsHttpWebRequest = _

          WebRequest.Create("https://identitysso-cert.betfair.com/api/certlogin")

          request.Method = "POST"

          request.ContentType = "application/x-www-form-urlencoded"

          request.Headers.Add("X-Application: " & My.Settings.Betfair_APPKEY)

          Comment

          • aron
            Junior Member
            • Feb 2020
            • 2

            #20
            Hey thanks MV, all good now!

            Comment

            Working...
            X