Non-Interactive Login with cert not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mickey
    Junior Member
    • Sep 2019
    • 1

    #1

    Non-Interactive Login with cert not working

    I have read nearly all the examples and posts around getting the cert login working, but I am still struggling. I believe I have created my cert correctly using the xca tool. But I still get a {"loginStatus":"CERT_AUTH_REQUIRED"} status when trying to get the session token.

    curl -q -k --cert D:\OneDrive\Business\Betting\test.crt --key D:\OneDrive\Business\Betting\client-2048.pem --key-type PEM https://identitysso.betfair.com/api/certlogin -d "username=[username]&password=[pwd]" -H "X-Application: [app-key]" -v

    can anyone help please? Really struggling with this.

    The last part of the verbose logging is:

    < HTTP/1.1 200 OK
    < Content-Type: text/plain;charset=ISO-8859-1
    < Content-Length: 36
    < Date: Sat, 09 Nov 2019 00:56:31 GMT
    < Content-Security-Policy-Report-Only: default-src 'unsafe-inline' 'unsafe-eval' data: https: wss:; report-uri https://shk.betfair.com/csp
    < X-XSS-Protection: 1; mode=block
    <
    {"loginStatus":"CERT_AUTH_REQUIRED"}* Connection #0 to host identitysso.betfair.com left intact

    From this it looks like the cert is not set correctly???

    my cert config is:

    nsComment=xca certificate
    nsCertType=client
    extendedKeyUsage=clientAuth
    keyUsage=digitalSignature, keyEncipherment
    subjectKeyIdentifier=hash
    basicConstraints=critical,CA:TRUE
Working...
X