{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/359","repository_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples","labels_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/359/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/359/events","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/359","id":227639035,"number":359,"title":"python ssl error while trying getallvms.py","user":{"login":"thinksabin","id":6102027,"avatar_url":"https://avatars3.githubusercontent.com/u/6102027?v=3","gravatar_id":"","url":"https://api.github.com/users/thinksabin","html_url":"https://github.com/thinksabin","followers_url":"https://api.github.com/users/thinksabin/followers","following_url":"https://api.github.com/users/thinksabin/following{/other_user}","gists_url":"https://api.github.com/users/thinksabin/gists{/gist_id}","starred_url":"https://api.github.com/users/thinksabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinksabin/subscriptions","organizations_url":"https://api.github.com/users/thinksabin/orgs","repos_url":"https://api.github.com/users/thinksabin/repos","events_url":"https://api.github.com/users/thinksabin/events{/privacy}","received_events_url":"https://api.github.com/users/thinksabin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-10T10:46:30Z","updated_at":"2017-05-17T02:00:03Z","closed_at":null,"body":"Hi,\r\nI think i missed something here. I am trying to use getallvms.py and im using following command\r\n\r\n$python getallvms.py -s 192.168.2.11 -o 443 -u test -p test\r\n\r\n192.168.2.11 is my esxi machine not vcenter. Is this a right usage of the script???\r\nThanks in advance\r\n\r\nThe issues is :\r\n\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"getallvms.py\", line 97, in <module>\r\n    main()\r\n  File \"getallvms.py\", line 73, in main\r\n    port=int(args.port))\r\n  File \"/usr/local/lib/python2.7/dist-packages/pyVim/connect.py\", line 817, in SmartConnect\r\n    sslContext)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pyVim/connect.py\", line 702, in __FindSupportedVersion\r\n    sslContext)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pyVim/connect.py\", line 622, in __GetServiceVersionDescription\r\n    path + \"/vimServiceVersions.xml\", sslContext)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pyVim/connect.py\", line 588, in __GetElementTree\r\n    conn.request(\"GET\", path)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1057, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1097, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1053, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 897, in _send_output\r\n    self.send(msg)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 859, in send\r\n    self.connect()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1278, in connect\r\n    server_hostname=server_hostname)\r\n  File \"/usr/lib/python2.7/ssl.py\", line 353, in wrap_socket\r\n    _context=self)\r\n  File \"/usr/lib/python2.7/ssl.py\", line 601, in __init__\r\n    self.do_handshake()\r\n  File \"/usr/lib/python2.7/ssl.py\", line 830, in do_handshake\r\n    self._sslobj.do_handshake()\r\nssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/comments/301964013","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/359#issuecomment-301964013","issue_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/359","id":301964013,"user":{"login":"GhostofGoes","id":6599820,"avatar_url":"https://avatars3.githubusercontent.com/u/6599820?v=3","gravatar_id":"","url":"https://api.github.com/users/GhostofGoes","html_url":"https://github.com/GhostofGoes","followers_url":"https://api.github.com/users/GhostofGoes/followers","following_url":"https://api.github.com/users/GhostofGoes/following{/other_user}","gists_url":"https://api.github.com/users/GhostofGoes/gists{/gist_id}","starred_url":"https://api.github.com/users/GhostofGoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GhostofGoes/subscriptions","organizations_url":"https://api.github.com/users/GhostofGoes/orgs","repos_url":"https://api.github.com/users/GhostofGoes/repos","events_url":"https://api.github.com/users/GhostofGoes/events{/privacy}","received_events_url":"https://api.github.com/users/GhostofGoes/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T02:00:03Z","updated_at":"2017-05-17T02:00:03Z","body":"If you access the ESXi web interface through a browser and get a trust/certificate error, then it is not trusted. You'll need to download the certificate from the server and trust it, there are some guides out there on how to do so."}}
{"actor":{"display_login":"GhostofGoes"}}