duosecurity / duo_client_python

Python library for interacting with the Duo Auth, Admin, and Accounts APIs
https://duo.com/docs/
Other
137 stars 136 forks source link

Support SNI in duo client #211

Closed ccassell closed 1 year ago

ccassell commented 1 year ago

Connecting to a service that uses SSL/TLS with SNI, for example AWS CloudFront, raises an SSLV3_ALERT_HANDSHAKE_FAILURE exception. To fix this, pass server hostname to SSLContext.wrap_socket.

AaronAtDuo commented 1 year ago

thanks @ccassell