7
7
7761662019-11-29 18:12:33
Python
776166, 2019-11-29 18:12:33

Python/Requests/SSL - how to make certificates work?

You need to make requests.POST from python to a site with https. It doesn’t work without ssl, you don’t need to offer verify=Falseit. The request via curl from the Mac goes through, apparently, everything is in order with the certificates. From the Ubuntu server, curl passes, but the python shuts up. From the ubuntu desktop, even curl does not work.
I smoked a pack of manuals, but nothing helps. Installed and updated certifi and the address to the certificate that it issues does not help.
How to set it up correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2019-11-29
@ky0

So this is ... what is the error? If it is simply impossible to authenticate - roll a more recent version ca-certificatesto the machine from where the request does not pass.

C
CityCat4, 2019-11-29
@CityCat4

If verify=false passes, then again an error of an unknown publisher. If there was a fact here, this question would already be worth bringing into it - because everyone falls into this rake. Is the certificate self-signed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question