{"action":"created","issue":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/1952","repository_url":"https://api.github.com/repos/QuantConnect/Lean","labels_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1952/labels{/name}","comments_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1952/comments","events_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1952/events","html_url":"https://github.com/QuantConnect/Lean/issues/1952","id":319837754,"number":1952,"title":"SSL/TLS error in LiveOptionChainProvider","user":{"login":"StefanoRaggi","id":7236689,"avatar_url":"https://avatars1.githubusercontent.com/u/7236689?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanoRaggi","html_url":"https://github.com/StefanoRaggi","followers_url":"https://api.github.com/users/StefanoRaggi/followers","following_url":"https://api.github.com/users/StefanoRaggi/following{/other_user}","gists_url":"https://api.github.com/users/StefanoRaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanoRaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanoRaggi/subscriptions","organizations_url":"https://api.github.com/users/StefanoRaggi/orgs","repos_url":"https://api.github.com/users/StefanoRaggi/repos","events_url":"https://api.github.com/users/StefanoRaggi/events{/privacy}","received_events_url":"https://api.github.com/users/StefanoRaggi/received_events","type":"User","site_admin":false},"labels":[{"id":152135277,"url":"https://api.github.com/repos/QuantConnect/Lean/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"StefanoRaggi","id":7236689,"avatar_url":"https://avatars1.githubusercontent.com/u/7236689?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanoRaggi","html_url":"https://github.com/StefanoRaggi","followers_url":"https://api.github.com/users/StefanoRaggi/followers","following_url":"https://api.github.com/users/StefanoRaggi/following{/other_user}","gists_url":"https://api.github.com/users/StefanoRaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanoRaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanoRaggi/subscriptions","organizations_url":"https://api.github.com/users/StefanoRaggi/orgs","repos_url":"https://api.github.com/users/StefanoRaggi/repos","events_url":"https://api.github.com/users/StefanoRaggi/events{/privacy}","received_events_url":"https://api.github.com/users/StefanoRaggi/received_events","type":"User","site_admin":false},"assignees":[{"login":"StefanoRaggi","id":7236689,"avatar_url":"https://avatars1.githubusercontent.com/u/7236689?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanoRaggi","html_url":"https://github.com/StefanoRaggi","followers_url":"https://api.github.com/users/StefanoRaggi/followers","following_url":"https://api.github.com/users/StefanoRaggi/following{/other_user}","gists_url":"https://api.github.com/users/StefanoRaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanoRaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanoRaggi/subscriptions","organizations_url":"https://api.github.com/users/StefanoRaggi/orgs","repos_url":"https://api.github.com/users/StefanoRaggi/repos","events_url":"https://api.github.com/users/StefanoRaggi/events{/privacy}","received_events_url":"https://api.github.com/users/StefanoRaggi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-03T08:58:40Z","updated_at":"2018-05-07T13:11:33Z","closed_at":null,"author_association":"MEMBER","body":"\r\n#### Expected Behavior\r\nNo error should be thrown when calling the `GetOptionContractList` method.\r\n\r\n#### Actual Behavior\r\nWhen calling `GetOptionContractList` method this error is thrown:\r\n- Mono:\r\n```System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.)```\r\n- Windows:\r\n```System.Net.WebException : The request was aborted: Could not create SSL/TLS secure channel.```\r\n\r\n#### Potential Solution\r\nThe `LiveOptionChainProvider` fetches the option chain information from the OCC website.\r\nApparently, it seems they upgraded the security protocol in their web server and our web request is failing, at least `TLS 1.1` is now required and NET 4.5.2 does not have it enabled by default.\r\n\r\n#### Reproducing the Problem\r\nThis unit test is now failing on current master branch:\r\n```\r\n        [Test]\r\n        public void LiveOptionChainProviderReturnsData()\r\n        {\r\n            var provider = new LiveOptionChainProvider();\r\n            var result = provider.GetOptionContractList(Symbols.AAPL, DateTime.Today);\r\n\r\n            Assert.IsTrue(result.Any());\r\n        }\r\n```\r\n\r\n#### System Information\r\nNET 4.5.2 and Mono in QC cloud\r\n\r\n#### Checklist\r\n- [x] I have completely filled out this template\r\n- [x] I have confirmed that this issue exists on the current `master` branch\r\n- [x] I have confirmed that this is not a duplicate issue by searching [issues](https://github.com/QuantConnect/Lean/issues)\r\n- [x] I have provided detailed steps to reproduce the issue"},"comment":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/comments/387059641","html_url":"https://github.com/QuantConnect/Lean/issues/1952#issuecomment-387059641","issue_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1952","id":387059641,"user":{"login":"StefanoRaggi","id":7236689,"avatar_url":"https://avatars1.githubusercontent.com/u/7236689?v=4","gravatar_id":"","url":"https://api.github.com/users/StefanoRaggi","html_url":"https://github.com/StefanoRaggi","followers_url":"https://api.github.com/users/StefanoRaggi/followers","following_url":"https://api.github.com/users/StefanoRaggi/following{/other_user}","gists_url":"https://api.github.com/users/StefanoRaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanoRaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanoRaggi/subscriptions","organizations_url":"https://api.github.com/users/StefanoRaggi/orgs","repos_url":"https://api.github.com/users/StefanoRaggi/repos","events_url":"https://api.github.com/users/StefanoRaggi/events{/privacy}","received_events_url":"https://api.github.com/users/StefanoRaggi/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T13:11:33Z","updated_at":"2018-05-07T13:11:33Z","author_association":"MEMBER","body":"Reopening this issue because the problem persists in the QC cloud (Mono) and needs further investigation.\r\n\r\nThis test confirms that the OCC web server only supports TLS 1.1 and TLS 1.2:\r\nhttps://www.ssllabs.com/ssltest/analyze.html?d=www.theocc.com"}}
{"actor":{"display_login":"StefanoRaggi"}}