Cert_File and Key_File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ptdww
    Junior Member
    • Apr 2023
    • 2

    #1

    Cert_File and Key_File

    Hi,
    I have recently received my application key and session token, but i need the cert_file and key_file for the private keys to work and i cannot find these anywhere. can anybody help?
    cheers
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Session token isn't meant to be a fixed thing, so best not to assume that it is. I never went for the non-interactive login route, but I rather think you have to generate the files yourself. Try a forum search for non-interactive login and you should find some relevant posts.

    Comment

    • pwebtech
      Member
      • Apr 2021
      • 49

      #3
      yes you need to generate your cert files yourself, you own those, and then you upload them to your betfair account via the website and this will give you code access to the betfair API https://docs.developer.betfair.com/d...28bot%29+login

      Comment

      • pwebtech
        Member
        • Apr 2021
        • 49

        #4
        i pumped this into chatGPT 4 and my god it knows!

        Comment

        • pwebtech
          Member
          • Apr 2021
          • 49

          #5
          Creating a self-signed certificate and uploading it to your Betfair account involves a few steps. Here's a step-by-step guide to help you through the process:

          Creating a self-signed certificate:
          1. Install OpenSSL: First, you need to have OpenSSL installed on your computer. OpenSSL is a widely-used tool for creating SSL certificates. You can download it from https://www.openssl.org/source/.

          For Windows users, you can download a precompiled version of OpenSSL from this link: https://slproweb.com/products/Win32OpenSSL.html
          1. Create a private key: Open a terminal or command prompt, navigate to the directory where you want to store your certificate files, and run the following command:
          csharpCopy code
          openssl genrsa -out private-key.pem 2048
          This command will generate a 2048-bit RSA private key and save it as private-key.pem.
          1. Create a self-signed certificate: Now, create a self-signed certificate using the private key you just generated. Run the following command:
          vbnetCopy code
          openssl req -new -x509 -key private-key.pem -out certificate.pem -days 365
          You'll be prompted to enter some information about the certificate, such as the country, state, organization, and common name (usually the domain name). After you've provided the information, OpenSSL will generate a self-signed certificate and save it as certificate.pem.

          Uploading the certificate to your Betfair account:
          1. Log in to your Betfair account: Visit the Betfair website at https://www.betfair.com/ and log in to your account.
          2. Navigate to the "My Account" section: Once you're logged in, click on your username in the top right corner and select "My Account" from the dropdown menu.
          3. Go to the "Applications" section: In the "My Account" section, find and click on the "Applications" tab.
          4. Add a new application: In the "Applications" section, click on the "Add New Application" button to create a new application.
          5. Upload your self-signed certificate: Fill in the required information for your new application, such as the application name and description. You should also see a section where you can upload your self-signed certificate. Click the "Choose File" or "Browse" button, locate the certificate.pem file you created earlier, and upload it.
          6. Save your new application: After you've filled in all the required information and uploaded your certificate, click the "Save" or "Submit" button to save your new application.

          Once you've completed these steps, your self-signed certificate should be uploaded to your Betfair account and associated with the application you created. Please note that using a self-signed certificate may cause security warnings in some browsers, as they are not considered as secure as certificates issued by a trusted Certificate Authority (CA).

          Comment

          • pwebtech
            Member
            • Apr 2021
            • 49

            #6
            maybe we should start a thread on use of chatGPT for gambling?

            Comment

            • Ptdww
              Junior Member
              • Apr 2023
              • 2

              #7
              oh wow that's insane, thank you so much everyone.
              I have been using ChatGPT 4, maybe im asking the wrong questions...or i have tired it out haha

              Comment

              Working...
              X