{"action":"opened","issue":{"url":"https://api.github.com/repos/picklepete/pyicloud/issues/52","labels_url":"https://api.github.com/repos/picklepete/pyicloud/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/picklepete/pyicloud/issues/52/comments","events_url":"https://api.github.com/repos/picklepete/pyicloud/issues/52/events","html_url":"https://github.com/picklepete/pyicloud/issues/52","id":112053119,"number":52,"title":"Allow session.verify","user":{"login":"leres","id":597247,"avatar_url":"https://avatars.githubusercontent.com/u/597247?v=3","gravatar_id":"","url":"https://api.github.com/users/leres","html_url":"https://github.com/leres","followers_url":"https://api.github.com/users/leres/followers","following_url":"https://api.github.com/users/leres/following{/other_user}","gists_url":"https://api.github.com/users/leres/gists{/gist_id}","starred_url":"https://api.github.com/users/leres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leres/subscriptions","organizations_url":"https://api.github.com/users/leres/orgs","repos_url":"https://api.github.com/users/leres/repos","events_url":"https://api.github.com/users/leres/events{/privacy}","received_events_url":"https://api.github.com/users/leres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T00:31:06Z","updated_at":"2015-10-19T00:31:06Z","closed_at":null,"body":"Could we please have some way to allow session.verify to be True? The attached patch is one possible way.\r\n\r\nHum... I'm getting \"Attaching documents requires write permission to this repository. Try again with a PNG, GIF, or JPG.\" (that's pretty silly!)\r\n\r\nHere's the patch inline..\r\n<pre>\r\n--- pyicloud-svn/base.py        2015-05-29 17:17:37.000000000 -0700\r\n+++ pyicloud/base.py    2015-10-18 17:23:53.000000000 -0700\r\n@@ -32,7 +32,7 @@\r\n         pyicloud = PyiCloudService('username@apple.com', 'password')\r\n         pyicloud.iphone.location()\r\n     \"\"\"\r\n-    def __init__(self, apple_id, password, cookie_directory=None):\r\n+    def __init__(self, apple_id, password, cookie_directory=None, verify=False):\r\n         self.discovery = None\r\n         self.client_id = str(uuid.uuid1()).upper()\r\n         self.user = {'apple_id': apple_id, 'password': password}\r\n@@ -57,7 +57,7 @@\r\n             )\r\n \r\n         self.session = requests.Session()\r\n-        self.session.verify = False\r\n+        self.session.verify = verify\r\n         self.session.headers.update({\r\n             'host': 'setup.icloud.com',\r\n             'origin': self._home_endpoint,\r\n</pre>\r\n"}}