"CERT_AUTH_REQUIRED" is returned if the cert login request is made but the presence of the certificate in the request isn't identified or your Betfair account cannot be authenticated, due to an incorrect password.
Please check
- that the certificate is uploaded to your Betfair account.
- your login code correctly references the directory in which your certificate is being stored.
-
you are using the correct account password. If you have any special characters in your password, you should ensure that your password is encoded before being submitted at the login stage.
For example, "p@ssword2021" would be encoded to and sent as "p%40ssword2021"
Sample curl command to test the non-interactive login
Using the below curl command, you should insert your own Betfair username and password. Please note: You must also specify the full file path that contains your client certificate and key.
curl -v -q -k --cert client- 2048 .crt --key client- 2048 .key 'https://identitysso-cert.betfair.com/api/certlogin' -H 'X-Application:{{appId}}' --data-urlencode 'username={{username}}' --data-urlencode 'password={{password}}'
Response should be { "sessionToken" : "Zx8i4oigut5nc+l4L8qFb0DSxG+mwLn2t0AMGFxjrMJI=" , "loginStatus" : "SUCCESS" }
|
Comments
0 comments
Article is closed for comments.