{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/706","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/706/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/706/events","html_url":"https://github.com/tgalal/yowsup/issues/706","id":67242577,"number":706,"title":"SSL CERTIFICATE_VERIFY_FAILED (Windows - Python 3.4)","user":{"login":"fasfelipe","id":3688158,"avatar_url":"https://avatars.githubusercontent.com/u/3688158?v=3","gravatar_id":"","url":"https://api.github.com/users/fasfelipe","html_url":"https://github.com/fasfelipe","followers_url":"https://api.github.com/users/fasfelipe/followers","following_url":"https://api.github.com/users/fasfelipe/following{/other_user}","gists_url":"https://api.github.com/users/fasfelipe/gists{/gist_id}","starred_url":"https://api.github.com/users/fasfelipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasfelipe/subscriptions","organizations_url":"https://api.github.com/users/fasfelipe/orgs","repos_url":"https://api.github.com/users/fasfelipe/repos","events_url":"https://api.github.com/users/fasfelipe/events{/privacy}","received_events_url":"https://api.github.com/users/fasfelipe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-08T23:28:37Z","updated_at":"2015-09-30T11:05:25Z","closed_at":null,"body":"Hi folks,\r\n\r\nI'm having SSL problem on **\"Registration\"** and **\"Register\"** using yowsup-cli. I'm using windows with Python 3.4 and last week it was working fine, and I could register the number without any problem.\r\nI seek for this SSL problem and found this problem on linux with a older version of python, but without a good solution. Any one know what should be this problem and what could I do to solve it? Any hint what cause this problem?\r\n\r\nHe is the call I am using.\r\n```\r\npython yowsup-cli registration --requestcode sms --phone 5511XXXXXXXXX --cc 55 --mcc 724 --mnc 13\r\n ```\r\n\r\nThrow this out:\r\n```\r\nTraceback (most recent call last):\r\n  File \"yowsup-cli\", line 304, in <module>\r\n    if not parser.process():\r\n  File \"yowsup-cli\", line 158, in process\r\n    self.handleRegister(self.args[\"register\"], config)\r\n  File \"yowsup-cli\", line 181, in handleRegister\r\n    result = req.send()\r\n  File \"C:\\Users\\Felipe\\Documents\\Python\\WhatsApp\\yowsup-master\\yowsup\\common\\http\\warequest.py\", line 67, in send\r\n    return self.sendGetRequest(parser)\r\n  File \"C:\\Users\\Felipe\\Documents\\Python\\WhatsApp\\yowsup-master\\yowsup\\common\\http\\warequest.py\", line 105, in sendGetRequest\r\n    self.response = WARequest.sendRequest(host, port, path, headers, params, \"GET\")\r\n  File \"C:\\Users\\Felipe\\Documents\\Python\\WhatsApp\\yowsup-master\\yowsup\\common\\http\\warequest.py\", line 161, in sendRequest\r\n    conn.request(reqType, path, params, headers);\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 1088, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 1126, in _send_request\r\n    self.endheaders(body)\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 1084, in endheaders\r\n    self._send_output(message_body)\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 922, in _send_output\r\n    self.send(msg)\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 857, in send\r\n    self.connect()\r\n  File \"C:\\Python34\\lib\\http\\client.py\", line 1231, in connect\r\n    server_hostname=server_hostname)\r\n  File \"C:\\Python34\\lib\\ssl.py\", line 365, in wrap_socket\r\n    _context=self)\r\n  File \"C:\\Python34\\lib\\ssl.py\", line 583, in __init__\r\n    self.do_handshake()\r\n  File \"C:\\Python34\\lib\\ssl.py\", line 810, in do_handshake\r\n    self._sslobj.do_handshake()\r\nssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)\r\n```\r\n\r\nThanks all.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10745866-ssl-certificate_verify_failed-windows-python-3-4?utm_campaign=plugin&utm_content=tracker%2F298781&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F298781&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/144362135","html_url":"https://github.com/tgalal/yowsup/issues/706#issuecomment-144362135","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/706","id":144362135,"user":{"login":"Kaemmelot","id":5353825,"avatar_url":"https://avatars.githubusercontent.com/u/5353825?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaemmelot","html_url":"https://github.com/Kaemmelot","followers_url":"https://api.github.com/users/Kaemmelot/followers","following_url":"https://api.github.com/users/Kaemmelot/following{/other_user}","gists_url":"https://api.github.com/users/Kaemmelot/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaemmelot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaemmelot/subscriptions","organizations_url":"https://api.github.com/users/Kaemmelot/orgs","repos_url":"https://api.github.com/users/Kaemmelot/repos","events_url":"https://api.github.com/users/Kaemmelot/events{/privacy}","received_events_url":"https://api.github.com/users/Kaemmelot/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T11:05:25Z","updated_at":"2015-09-30T11:05:25Z","body":"Thanks @Codehimn, works great!\r\n\r\nThe Important part is the\r\nimport ssl, socket\r\nat the top and these 2 lines:\r\nsock = socket.create_connection((conn.host, conn.port), conn.timeout, conn.source_address)\r\n    conn.sock = ssl.wrap_socket(sock, conn.key_file, conn.cert_file, ssl_version=ssl.PROTOCOL_TLSv1)\r\n"}}