Skip to content

Add command line flag to bypass SSL check #70

@darzok0914

Description

@darzok0914

Describe the Bug

When I try to install a docset for cpp I have a SLL certificate error.

Expected Behaviour

Would it be possible to pass some cmd line argument (or a config file?) to either disable the ssl certificate check or pass the path to that certificate?
https://www.geeksforgeeks.org/ssl-certificate-verification-python-requests/

Steps to Reproduce the Bug

 zeal-cli install cpp
Getting list of available docsets
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 703, in urlopen
  File "urllib3/connectionpool.py", line 386, in _make_request
  File "urllib3/connectionpool.py", line 1040, in _validate_conn
  File "urllib3/connection.py", line 414, in connect
  File "urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
  File "urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
  File "ssl.py", line 513, in wrap_socket
  File "ssl.py", line 1071, in _create
  File "ssl.py", line 1342, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 440, in send
  File "urllib3/connectionpool.py", line 785, in urlopen
  File "urllib3/util/retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='codeload.github.com', port=443): Max retries exceeded with url: /Kapeli/feeds/zip/refs/heads/master (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "zeal_cli.py", line 131, in <module>
  File "zeal_cli.py", line 75, in main
  File "zeal/downloads.py", line 50, in get_feeds
  File "zeal/downloads.py", line 28, in download_and_extract
  File "requests/api.py", line 75, in get
  File "requests/api.py", line 61, in request
  File "requests/sessions.py", line 529, in request
  File "requests/sessions.py", line 667, in send
  File "requests/sessions.py", line 667, in <listcomp>
  File "requests/sessions.py", line 237, in resolve_redirects
  File "requests/sessions.py", line 645, in send
  File "requests/adapters.py", line 517, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='codeload.github.com', port=443): Max retries exceeded with url: /Kapeli/feeds/zip/refs/heads/master (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
[18458] Failed to execute script 'zeal_cli' due to unhandled exception!   

Version

1.2.0

OS

  • MacOS
  • Windows
  • Linux

Additional Context

I am using ubuntu 20.04 on arm64 (docker dev env on mac m1 chip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions