[Python] Sweden BankID SSL verification falied

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    The API connection fails due to SSL verification issues. Although the BankID certificate and key are present, along with the SSL issuer certificate, the connection still cannot be established. In the local environment, I used the test environment certificate and key, and it works fine when SSL verification is disabled (verify=False) get data with error. According to link 2, there's an Issuer Certificate available for the test environment. I tried using that as well, but it still results in a CERTIFICATE_VERIFY_FAILED error.

    1.https://developers.bankid.com/test-portal/test-information

    2.https://developers.bankid.com/getting-started/environments NOt working for test.

    Error:

    raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host='appapi2.test.bankid.com', port=443): Max retries exceeded with url: /r
    p/v6.0/auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unabl
    e to get local issuer certificate (_ssl.c:1091)')))

    Continue reading...

Compartilhe esta Página