Struggling with getting a valid certificate for api call from phyton

Hi,

as I need to migrate to api via https for sending an SMS I am struggling with getting a valid certificate.

My curl test did not check the cerificate.
If I use python it works if I use verify=False.

response = requests.post(url=f"{base_url}/login", json=credentials, verify=False)

But I would like to have a valid certificate.
I do not want to use an external server to sign it.
It should just use the local RUT241 device.
I used your guidline:

But I still get on the Chrome “not seccure” but “valid”.

Do you please have some hints or did I do something wrong?
Thanks

Assuming you used the ‘Simple’ method to generate the device certificates …

Did you download the ‘ca.cert.pem’ and install it your computer? You’ll also need to restart your browser, for the new certificate to take effect.

Yes I did already before.
It looks like it took some time.
Or:
I think it was maybe the restart of the browser, as I had several chrome windows open.
I think it worked after I closed all chrome windows.

Now chrome displays it correct.

The issue with password I wrote before was my fault.
Chrome stored a different one as I have several RUTs.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.