Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1595

Fix malformed SSL certificate retrieving

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0
    • Component/s: Framework

      Description

      When trying to connect to a server that has a badly formated SSL certificate, we end on this king of error:

      KeyError: 'caIssuers'
        File "nxdrive\gui\api.py", line 677, in web_authentication
        File "nxdrive\gui\api.py", line 518, in _guess_server_url
        File "nxdrive\gui\application.py", line 957, in accept_unofficial_ssl_cert
      
      InvalidSSLCertificate: Invalid SSL certificate. Use 'ca-bundle' (or 'ssl-no-verify') option to tune SSL behavior.
        File "nxdrive\gui\api.py", line 513, in _guess_server_url
        File "nxdrive\utils.py", line 713, in guess_server_url
      
      SSLError: HTTPSConnectionPool(host='172.16.6.110', port=443): Max retries exceeded with url: /nuxeo/drive_login.jsp (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)'),))
        File "nxdrive\utils.py", line 703, in guess_server_url
        File "lib\site-packages\requests\api.py", line 75, in get
        File "lib\site-packages\requests\api.py", line 60, in request
        File "lib\site-packages\requests\sessions.py", line 533, in request
        File "lib\site-packages\requests\sessions.py", line 646, in send
        File "lib\site-packages\requests\adapters.py", line 514, in send
      
      MaxRetryError: HTTPSConnectionPool(host='172.16.6.110', port=443): Max retries exceeded with url: /nuxeo/drive_login.jsp (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)'),))
        File "lib\site-packages\requests\adapters.py", line 449, in send
        File "lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
        File "lib\site-packages\urllib3\util\retry.py", line 398, in increment
      
      SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)
        File "lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
        File "lib\site-packages\urllib3\connectionpool.py", line 343, in _make_request
        File "lib\site-packages\urllib3\connectionpool.py", line 839, in _validate_conn
        File "lib\site-packages\urllib3\connection.py", line 344, in connect
        File "lib\site-packages\urllib3\util\ssl_.py", line 357, in ssl_wrap_socket
        File "ssl.py", line 407, in wrap_socket
        File "ssl.py", line 817, in __init__
        File "ssl.py", line 1077, in do_handshake
        File "ssl.py", line 689, in do_handshake
      

      And Drive craches on Windows.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h