title: requests.exceptions.SSLError: HTTPSConnectionPool(host='api-fxpractice.oanda.com', port=443): Max retries exceeded with url
body: <p>the script works perfectly on my MacBook however i get error whenever i try to run it on my raspberry pi. I cant seem to find a solution, can someone point me the right direction! please and thanks</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py&quot;, line 485, in wrap_socket
      cnx.do_handshake()
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/OpenSSL/SSL.py&quot;, line 1934, in do_handshake
      self._raise_ssl_error(self._ssl, result)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/OpenSSL/SSL.py&quot;, line 1671, in _raise_ssl_error
      _raise_current_error()
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/OpenSSL/_util.py&quot;, line 54, in exception_from_error_queue
      raise exception_type(errors)
  OpenSSL.SSL.Error: [('SSL routines', 'tls_process_ske_dhe', 'dh key too small')]
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/connectionpool.py&quot;, line 672, in urlopen
      chunked=chunked,
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/connectionpool.py&quot;, line 376, in _make_request
      self._validate_conn(conn)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/connectionpool.py&quot;, line 994, in _validate_conn
      conn.connect()
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/connection.py&quot;, line 394, in connect
      ssl_context=context,
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/util/ssl_.py&quot;, line 370, in ssl_wrap_socket
      return context.wrap_socket(sock, server_hostname=server_hostname)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py&quot;, line 491, in wrap_socket
      raise ssl.SSLError(&quot;bad handshake: %r&quot; % e)
  ssl.SSLError: (&quot;bad handshake: Error([('SSL routines', 'tls_process_ske_dhe', 'dh key too small')])&quot;,)
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/requests/adapters.py&quot;, line 449, in send
      timeout=timeout
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/connectionpool.py&quot;, line 720, in urlopen
      method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/urllib3/util/retry.py&quot;, line 436, in increment
      raise MaxRetryError(_pool, url, error or ResponseError(cause))
  urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-fxpractice.oanda.com', port=443): Max retries exceeded with url: /v3/accounts/101-004-XXXXXXXX-001/summary (Caused by SSLError(SSLError(&quot;bad handshake: Error([('SSL routines', 'tls_process_ske_dhe', 'dh key too small')])&quot;)))
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;eurusd.py&quot;, line 1, in &lt;module&gt;
      import bot
    File &quot;/home/pi/Desktop/Bot/bot.py&quot;, line 14, in &lt;module&gt;
      import oanda
    File &quot;/home/pi/Desktop/Bot/oanda.py&quot;, line 35, in &lt;module&gt;
      client.request(r)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/oandapyV20/oandapyV20.py&quot;, line 306, in request
      request_args, headers=headers)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/oandapyV20/oandapyV20.py&quot;, line 234, in __request
      raise err
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/oandapyV20/oandapyV20.py&quot;, line 231, in __request
      **request_args)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/requests/sessions.py&quot;, line 543, in get
      return self.request('GET', url, **kwargs)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/requests/sessions.py&quot;, line 530, in request
      resp = self.send(prep, **send_kwargs)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/requests/sessions.py&quot;, line 643, in send
      r = adapter.send(request, **kwargs)
    File &quot;/home/pi/Desktop/Bot/env/lib/python3.7/site-packages/requests/adapters.py&quot;, line 514, in send
      raise SSLError(e, request=request)
  requests.exceptions.SSLError: HTTPSConnectionPool(host='api-fxpractice.oanda.com', port=443): Max retries exceeded with url: /v3/accounts/101-XXX-XXXXXXX-001/summary (Caused by SSLError(SSLError(&quot;bad handshake: Error([('SSL routines', 'tls_process_ske_dhe', 'dh key too small')])&quot;)))
  </code></pre>