{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/399","repository_url":"https://api.github.com/repos/Esri/resource-proxy","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/399/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/399/events","html_url":"https://github.com/Esri/resource-proxy/issues/399","id":193146938,"number":399,"title":"Dotnet - Could not create SSL/TLS secure channel.","user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-02T15:43:55Z","updated_at":"2016-12-08T14:40:45Z","closed_at":null,"body":"Any idea what's going on here?\r\n\r\n Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209 \r\n\r\n I have the proxy application set up and configured to use ASP.NET v4.0. I am hitting a url like this:\r\n\r\n`https://apps.myapps.com/proxy/proxy.ashx?https://apps.myapps.com/arcgis/rest/services`\r\n\r\nServer Error in '/ags_proxy' Application.\r\nThe request was aborted: Could not create SSL/TLS secure channel.\r\nDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.\r\n\r\nException Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.\r\n\r\nSource Error:\r\n\r\n```aspx\r\nLine 490:            if (bytes != null && bytes.Length > 0)\r\nLine 491:                req.ContentLength = bytes.Length;\r\nLine 492:            using (Stream outputStream = req.GetRequestStream()) {\r\nLine 493:                outputStream.Write(bytes, 0, bytes.Length);\r\nLine 494:            }\r\n```\r\n\r\nSource File: c:\\inetpub\\wwwroot\\ags_proxy\\proxy.ashx    Line: 492\r\n\r\nStack Trace:\r\n\r\n```\r\n[WebException: The request was aborted: Could not create SSL/TLS secure channel.]\r\n   System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +1176\r\n   System.Net.HttpWebRequest.GetRequestStream() +23\r\n   proxy.doHTTPRequest(String uri, Byte[] bytes, String method, String referer, String contentType, NetworkCredential credentials) in c:\\inetpub\\wwwroot\\ags_proxy\\proxy.ashx:492\r\n   proxy.doHTTPRequest(String uri, String method, NetworkCredential credentials) in c:\\inetpub\\wwwroot\\ags_proxy\\proxy.ashx:470\r\n   proxy.getNewTokenIfCredentialsAreSpecified(ServerUrl su, String reqUrl) in c:\\inetpub\\wwwroot\\ags_proxy\\proxy.ashx:565\r\n   proxy.ProcessRequest(HttpContext context) in c:\\inetpub\\wwwroot\\ags_proxy\\proxy.ashx:257\r\n   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913\r\n   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/265755461","html_url":"https://github.com/Esri/resource-proxy/issues/399#issuecomment-265755461","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/399","id":265755461,"user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T14:40:45Z","updated_at":"2016-12-08T14:40:45Z","body":"Apparent fix is to change: \r\n```aspnet\r\n ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;\r\n```\r\nto\r\n```aspnet\r\nServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;\r\n```\r\n\r\nI realize this isn't \"secure\" but since we're accessing an internal server there shouldn't be an issue, right?"}}
{"actor":{"display_login":"roemhildtg"}}