{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/200","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/200/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/200/events","html_url":"https://github.com/elasticsearch/elasticsearch-py/pull/200","id":57977965,"number":200,"title":"Added an option to suppress ssl check warning this warning appears in re...","user":{"login":"imanhodjaev","id":354868,"avatar_url":"https://avatars.githubusercontent.com/u/354868?v=3","gravatar_id":"","url":"https://api.github.com/users/imanhodjaev","html_url":"https://github.com/imanhodjaev","followers_url":"https://api.github.com/users/imanhodjaev/followers","following_url":"https://api.github.com/users/imanhodjaev/following{/other_user}","gists_url":"https://api.github.com/users/imanhodjaev/gists{/gist_id}","starred_url":"https://api.github.com/users/imanhodjaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imanhodjaev/subscriptions","organizations_url":"https://api.github.com/users/imanhodjaev/orgs","repos_url":"https://api.github.com/users/imanhodjaev/repos","events_url":"https://api.github.com/users/imanhodjaev/events{/privacy}","received_events_url":"https://api.github.com/users/imanhodjaev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-17T20:32:36Z","updated_at":"2015-02-18T17:58:51Z","closed_at":"2015-02-18T17:24:39Z","pull_request":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/pulls/200","html_url":"https://github.com/elasticsearch/elasticsearch-py/pull/200","diff_url":"https://github.com/elasticsearch/elasticsearch-py/pull/200.diff","patch_url":"https://github.com/elasticsearch/elasticsearch-py/pull/200.patch"},"body":"Added an option called *show_ssl_warnings=True/False* to suppress ssl check warning this warning appears in request client at \r\n*http_urllib3* and *http_requests* https://github.com/elasticsearch/elasticsearch-py/blob/master/elasticsearch/connection/http_urllib3.py#L49 https://github.com/elasticsearch/elasticsearch-py/blob/master/elasticsearch/connection/http_requests.py#L50\r\n\r\nNow if we want to hide warnings like *Connecting to %s using SSL with verify_certs=False is insecure.* we can pass this keyword argument like\r\n```python\r\nElasticsearch(hosts=HOSTS, show_ssl_warnings=False)\r\n```"},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/comments/74913257","html_url":"https://github.com/elasticsearch/elasticsearch-py/pull/200#issuecomment-74913257","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch-py/issues/200","id":74913257,"user":{"login":"HonzaKral","id":32132,"avatar_url":"https://avatars.githubusercontent.com/u/32132?v=3","gravatar_id":"","url":"https://api.github.com/users/HonzaKral","html_url":"https://github.com/HonzaKral","followers_url":"https://api.github.com/users/HonzaKral/followers","following_url":"https://api.github.com/users/HonzaKral/following{/other_user}","gists_url":"https://api.github.com/users/HonzaKral/gists{/gist_id}","starred_url":"https://api.github.com/users/HonzaKral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonzaKral/subscriptions","organizations_url":"https://api.github.com/users/HonzaKral/orgs","repos_url":"https://api.github.com/users/HonzaKral/repos","events_url":"https://api.github.com/users/HonzaKral/events{/privacy}","received_events_url":"https://api.github.com/users/HonzaKral/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T17:58:51Z","updated_at":"2015-02-18T17:58:51Z","body":"Btw - best way to handle this is of course to specify `verify_certs=True` and provide the CA pack by certifi, then you should be covered. Then, you just provide the users of your CLI with the option not to verify (if using self-signed certs for example) and they won't be surprised by the warning then. It's what I would do."}}