{"action":"created","issue":{"url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/48","labels_url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/48/comments","events_url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/48/events","html_url":"https://github.com/gaganpreet/udemy-dl/issues/48","id":68941903,"number":48,"title":"curl: (35) SSL: CA certificate set, but certificate verification is disabled","user":{"login":"d-Pixie","id":1247102,"avatar_url":"https://avatars.githubusercontent.com/u/1247102?v=3","gravatar_id":"","url":"https://api.github.com/users/d-Pixie","html_url":"https://github.com/d-Pixie","followers_url":"https://api.github.com/users/d-Pixie/followers","following_url":"https://api.github.com/users/d-Pixie/following{/other_user}","gists_url":"https://api.github.com/users/d-Pixie/gists{/gist_id}","starred_url":"https://api.github.com/users/d-Pixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-Pixie/subscriptions","organizations_url":"https://api.github.com/users/d-Pixie/orgs","repos_url":"https://api.github.com/users/d-Pixie/repos","events_url":"https://api.github.com/users/d-Pixie/events{/privacy}","received_events_url":"https://api.github.com/users/d-Pixie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T14:56:09Z","updated_at":"2015-05-02T10:35:39Z","closed_at":null,"body":"Got this error on OS X Yosemite with Homebrew installed versions of python, pip and curl (current version as of today).\r\n\r\nTried reinstalling curl with openssl without success.\r\nAdded 'insecure' to ~/.curlrc without success.\r\nReinstalled Python and udemy-dl without success.\r\nFinally I cracked open the code and found the problem quickly on lines 26-28 in download.py\r\n\r\n    cert_path = requests.certs.where()\r\n    if cert_path:\r\n        command.extend(['--cacert', cert_path])\r\n\r\nCommenting out these lines solves the problem but for a permanent solution I believe that you need this instead (all of curl_dl now):\r\n\r\n    def curl_dl(link, filename):\r\n        command = ['curl', '-C', '-', link, '-o', filename]\r\n    \r\n        cert_path = requests.certs.where()\r\n        if cert_path:\r\n            command.extend(['--cacert', cert_path])\r\n        else:\r\n            command.extend(['--insecure'])\r\n        subprocess.call(command)\r\n\r\nBut Python is not my first language by a long shot so someone familiar with the code and language should probably look at it before I create a pull request :)"},"comment":{"url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/comments/98346834","html_url":"https://github.com/gaganpreet/udemy-dl/issues/48#issuecomment-98346834","issue_url":"https://api.github.com/repos/gaganpreet/udemy-dl/issues/48","id":98346834,"user":{"login":"amarewgs","id":917495,"avatar_url":"https://avatars.githubusercontent.com/u/917495?v=3","gravatar_id":"","url":"https://api.github.com/users/amarewgs","html_url":"https://github.com/amarewgs","followers_url":"https://api.github.com/users/amarewgs/followers","following_url":"https://api.github.com/users/amarewgs/following{/other_user}","gists_url":"https://api.github.com/users/amarewgs/gists{/gist_id}","starred_url":"https://api.github.com/users/amarewgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarewgs/subscriptions","organizations_url":"https://api.github.com/users/amarewgs/orgs","repos_url":"https://api.github.com/users/amarewgs/repos","events_url":"https://api.github.com/users/amarewgs/events{/privacy}","received_events_url":"https://api.github.com/users/amarewgs/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T10:35:39Z","updated_at":"2015-05-02T10:35:39Z","body":"great that helps, I just have updated the download.py file in my installation directory. thanks man!"}}