ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)
If add
resp = requests.post('https://x.x.x.x/api/tokens', data={'token': jwtToken}, verify=False)
it just throughs 403
/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'x.x.x.x'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
<Response [403]>
Trying to use code from README
gives me an error about SSL certificate
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)
If add
resp = requests.post('https://x.x.x.x/api/tokens', data={'token': jwtToken}, verify=False)
it just throughs 403