Certificate folder not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kerchowey
    Junior Member
    • May 2019
    • 8

    #16
    Hey LiamP - sorry for slow response was away.

    trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path, locale = 'en')
    trading.login()

    I am still getting the same error as before.

    Comment

    • LiamP
      Junior Member
      • Oct 2015
      • 284

      #17
      Originally posted by kerchowey View Post
      Hey LiamP - sorry for slow response was away.

      trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path, locale = 'en')
      trading.login()

      I am still getting the same error as before.
      Try locale=“australia”

      Comment

      • kerchowey
        Junior Member
        • May 2019
        • 8

        #18
        trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path, locale = 'australia')
        trading.login()

        Tried the above but still getting the same error.

        Comment

        • LiamP
          Junior Member
          • Oct 2015
          • 284

          #19
          Originally posted by kerchowey View Post
          trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path, locale = 'australia')
          trading.login()

          Tried the above but still getting the same error.
          What files do you have in your certs folder? It is looking for .key and .crt or .cert

          Comment

          • kerchowey
            Junior Member
            • May 2019
            • 8

            #20
            Hi Liam,

            That was the trick! I had a .pem file and .crt file (no .key file). I converted the .pem to a .key and it now works!

            Really appreciate all your help .

            Cheers

            Comment

            • Sammy
              Junior Member
              • May 2019
              • 2

              #21
              Kerchowey, i appear to be in exactly the same situation as you but I have not found a way to convert the .pem file to a .key file.

              Could you please explain how you did this?
              Cheers

              Comment

              • tradernz
                Junior Member
                • Feb 2016
                • 19

                #22
                Hey Sammy, Im pretty sure I just renamed it through windows

                Comment

                • Yoel
                  Junior Member
                  • Sep 2019
                  • 3

                  #23
                  Hi guys, I'm an expert developer with this, although I don't use betfairlightweight. I develop my own Python code, by using some simple wrapper code for the API a found on the web, more my adding. See result here: https://youtu.be/IXeEru1vM4M

                  Comment

                  Working...
                  X