I'm trying to use this in Amazon Linux 2, with python 3.7.9 and the latest duo_client. I get:
File "/usr/local/lib/python3.8/site-packages/duo_client/admin.py", line 528, in get_users
return list(self.get_users_iterator())
File "/usr/local/lib/python3.8/site-packages/duo_client/client.py", line 406, in json_paging_api_call
(response, data) = self.api_call(method, path, params)
File "/usr/local/lib/python3.8/site-packages/duo_client/admin.py", line 196, in api_call
return super(Admin, self).api_call(method, path, params)
File "/usr/local/lib/python3.8/site-packages/duo_client/client.py", line 276, in api_call
return self._make_request(method, uri, body, encoded_headers)
File "/usr/local/lib/python3.8/site-packages/duo_client/client.py", line 344, in _make_request
response, data = self._attempt_single_request(
File "/usr/local/lib/python3.8/site-packages/duo_client/client.py", line 357, in _attempt_single_request
conn.request(method, uri, body, headers)
File "/usr/lib64/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib64/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/duo_client/https_wrapper.py", line 121, in connect
self.sock = self.default_ssl_context.wrap_socket(self.sock)
File "/usr/lib64/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib64/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1123)
Any suggestions? Python requests doesn't have any ssl issues, so I don't see why this would.