I am getting an SSL "bad handshake" error. Most similar responses to this problem seem to stem from old libraries, 1024bit cert. incompatibility, etc... I think i'm up to date, and can't figure out why i'm getting this error.
SETUP:
- requests 2.13.0
- certifi 2017.01.23
- 'OpenSSL 1.0.2g 1 Mar 2016'
I'm hitting this API (2048bit certificate key): https://api.sidecar.io/rest/v1/provision/application/device/count/
And getting this error:
requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)
See l.44 of https://github.com/sidecar-io/sidecar-python-sdk/blob/master/sidecar.py
If I turn verify=False
in requests, I can bypass, but i'd rather figure out why the certification is failing.
Any help is greatly appreciated; thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…