title: SSL Error while building Python from sources
body: <p>I'm trying to install on my Jetson Nano board (Ubuntu) a specific Python version from sources and get an error which I don't know how to fix this.
  I do:</p>
  <ul>
  <li>wget <a href="https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz" rel="nofollow noreferrer">https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz</a></li>
  <li>tar</li>
  <li>zxvf Python-3.5.7.tgz cd Python-3.5.7</li>
  <li>./configure --enable-shared --enable-optimizations</li>
  <li>make</li>
  </ul>
  <p>And after some time I recieve:</p>
  <blockquote>
  <p>0:34:25 load avg: 1.10 [189/391] test_logging
  --- Logging error --- Got an error: [SSL: SSLV3_ALERT_CERTIFICATE_EXPIRED] sslv3 alert certificate expired
  (_ssl.c:728) Traceback (most recent call last):   File
  &quot;/home/dlinano/Documents/Python-3.5.7/Lib/logging/handlers.py&quot;, line
  1184, in emit
  h.endheaders()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py&quot;, line 1103,
  in endheaders
  self._send_output(message_body)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py&quot;, line 934,
  in _send_output
  self.send(msg)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py&quot;, line 877,
  in send
  self.connect()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/http/client.py&quot;, line 1261,
  in connect
  server_hostname=server_hostname)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py&quot;, line 385, in
  wrap_socket
  _context=self)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py&quot;, line 760, in
  <strong>init</strong>
  self.do_handshake()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py&quot;, line 996, in
  do_handshake
  self._sslobj.do_handshake()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/ssl.py&quot;, line 641, in
  do_handshake
  self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:728) Call
  stack:   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/runpy.py&quot;,
  line 193, in _run_module_as_main
  &quot;<strong>main</strong>&quot;, mod_spec)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/runpy.py&quot;, line 85, in
  _run_code
  exec(code, run_globals)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line
  1833, in 
  main_in_temp_cwd()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line
  1808, in main_in_temp_cwd
  main()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line 873,
  in main
  runtest_accumulate()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line 863,
  in runtest_accumulate
  match_tests=ns.match_tests, pgo=ns.pgo)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line
  1108, in runtest
  pgo=pgo)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/regrtest.py&quot;, line
  1403, in runtest_inner
  test_runner()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/support/<strong>init</strong>.py&quot;,
  line 1565, in inner
  return func(*args, **kwds)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/test_logging.py&quot;, line
  4298, in test_main
  support.run_unittest(*tests)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/support/<strong>init</strong>.py&quot;,
  line 1901, in run_unittest
  _run_suite(suite)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/support/<strong>init</strong>.py&quot;,
  line 1857, in _run_suite
  result = runner.run(suite)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/support/<strong>init</strong>.py&quot;,
  line 1740, in run
  test(result)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py&quot;, line 84,
  in <strong>call</strong>
  return self.run(*args, **kwds)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py&quot;, line
  122, in run
  test(result)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py&quot;, line 84,
  in <strong>call</strong>
  return self.run(*args, **kwds)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/suite.py&quot;, line
  122, in run
  test(result)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/case.py&quot;, line 653,
  in <strong>call</strong>
  return self.run(*args, **kwds)   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/unittest/case.py&quot;, line 605,
  in run
  testMethod()   File &quot;/home/dlinano/Documents/Python-3.5.7/Lib/test/test_logging.py&quot;, line
  1710, in test_output
  logger.error(msg) Message: 'spдm' Arguments: ()</p>
  </blockquote>
  <p>I've never seen this before and there's nothing similar over the internet</p>