{"action":"created","issue":{"url":"https://api.github.com/repos/ioos/pyoos/issues/77","repository_url":"https://api.github.com/repos/ioos/pyoos","labels_url":"https://api.github.com/repos/ioos/pyoos/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/ioos/pyoos/issues/77/comments","events_url":"https://api.github.com/repos/ioos/pyoos/issues/77/events","html_url":"https://github.com/ioos/pyoos/issues/77","id":206308198,"number":77,"title":"SSL error being thrown by HADS collector","user":{"login":"cordrey","id":13663699,"avatar_url":"https://avatars0.githubusercontent.com/u/13663699?v=3","gravatar_id":"","url":"https://api.github.com/users/cordrey","html_url":"https://github.com/cordrey","followers_url":"https://api.github.com/users/cordrey/followers","following_url":"https://api.github.com/users/cordrey/following{/other_user}","gists_url":"https://api.github.com/users/cordrey/gists{/gist_id}","starred_url":"https://api.github.com/users/cordrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cordrey/subscriptions","organizations_url":"https://api.github.com/users/cordrey/orgs","repos_url":"https://api.github.com/users/cordrey/repos","events_url":"https://api.github.com/users/cordrey/events{/privacy}","received_events_url":"https://api.github.com/users/cordrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-08T20:02:16Z","updated_at":"2017-03-07T15:47:21Z","closed_at":null,"body":"The following error is occurring when using HADS collector:\r\n\r\n```\r\n  File \"getHads_tj.py\", line 72, in <module>\r\n    respCollect = hadsData.collect()\r\n  File \"build/bdist.macosx-10.7-x86_64/egg/pyoos/collectors/hads/hads.py\", line 94, in collect\r\n  File \"build/bdist.macosx-10.7-x86_64/egg/pyoos/collectors/hads/hads.py\", line 102, in raw\r\n  File \"build/bdist.macosx-10.7-x86_64/egg/pyoos/collectors/hads/hads.py\", line 124, in _get_metadata\r\n  File \"/Applications/anaconda/envs/pyoos_testing/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/api.py\", line 110, in post\r\n    return request('post', url, data=data, json=json, **kwargs)\r\n  File \"/Applications/anaconda/envs/pyoos_testing/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/api.py\", line 56, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/Applications/anaconda/envs/pyoos_testing/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/sessions.py\", line 488, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/Applications/anaconda/envs/pyoos_testing/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/sessions.py\", line 609, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/Applications/anaconda/envs/pyoos_testing/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/adapters.py\", line 497, in send\r\n    raise SSLError(e, request=request)\r\nrequests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ioos/pyoos/issues/comments/284760140","html_url":"https://github.com/ioos/pyoos/issues/77#issuecomment-284760140","issue_url":"https://api.github.com/repos/ioos/pyoos/issues/77","id":284760140,"user":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars0.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"created_at":"2017-03-07T15:47:21Z","updated_at":"2017-03-07T15:47:21Z","body":"On a hunch I ran the SSL Server Test on hands.ncep.noaa.gov and I did find a bunch of certificate problems. This one is very likely because the certificate chain is incomplete. \r\n\r\nThe server is sending it's own signed certificate but not sending the intermediate certificates tracing back to the certificate authority. This is a very common problem that I see a lot. The server should be sending the server certificate and then the intermediate certificate. \r\n\r\nIf you visit it with your browser, chances are you'll still see a green padlock because you've visited a site with the intermediate certificate at some point so the browser caches these. Software, such as python, doesn't have it's own certificate database it just has the system trusted certificate authority root certificates. So, pyoos, in this case, has never seen the intermediate certificate and can't verify that the server's certificate is valid.\r\n\r\n![screen shot 2017-03-07 at 10 44 07 am](https://cloud.githubusercontent.com/assets/1155163/23664392/6d2726fe-0323-11e7-99e2-5d779f37e9df.png)\r\n\r\n![screen shot 2017-03-07 at 10 44 20 am](https://cloud.githubusercontent.com/assets/1155163/23664398/6fce57d8-0323-11e7-8239-4d84ff363381.png)\r\n"}}
{"actor":{"display_login":"lukecampbell"}}