{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/944","repository_url":"https://api.github.com/repos/aws/aws-sdk-net","labels_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/944/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/944/events","html_url":"https://github.com/aws/aws-sdk-net/issues/944","id":319579585,"number":944,"title":"ServicePointManager does not work with AWSSDK","user":{"login":"VenkateshSrini","id":1167152,"avatar_url":"https://avatars1.githubusercontent.com/u/1167152?v=4","gravatar_id":"","url":"https://api.github.com/users/VenkateshSrini","html_url":"https://github.com/VenkateshSrini","followers_url":"https://api.github.com/users/VenkateshSrini/followers","following_url":"https://api.github.com/users/VenkateshSrini/following{/other_user}","gists_url":"https://api.github.com/users/VenkateshSrini/gists{/gist_id}","starred_url":"https://api.github.com/users/VenkateshSrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VenkateshSrini/subscriptions","organizations_url":"https://api.github.com/users/VenkateshSrini/orgs","repos_url":"https://api.github.com/users/VenkateshSrini/repos","events_url":"https://api.github.com/users/VenkateshSrini/events{/privacy}","received_events_url":"https://api.github.com/users/VenkateshSrini/received_events","type":"User","site_admin":false},"labels":[{"id":130111443,"url":"https://api.github.com/repos/aws/aws-sdk-net/labels/Question","name":"Question","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-02T14:36:56Z","updated_at":"2018-05-16T01:54:02Z","closed_at":"2018-05-15T18:34:47Z","author_association":"NONE","body":"We are using .NET core 2.0. We would want to list objects from an S3 bucket. The S3 instance has SSL related issue and we would want our code to ignore the same. In .NET core 2.0 ServicePointManager has been introduced. So ideally the code is like below\r\n```\r\nServicePointManager.ServerCertificateValidationCallBack=(s,c,ch,ssl)=>true; \r\nusing (var client = AmazonClient(...))\r\n{\r\n}\r\n```\r\nBut even after doing this the SSL validation is not bypassed. Is their any other way to get this working\r\n\r\n## Expected Behavior\r\nSSL validation should be bypassed\r\n\r\n## Current Behavior\r\nSSL validation is not by passed and we are getting an security error\r\n\r\n## Steps to Reproduce (for bugs)\r\nany normal instance with a self signed certificate\r\n\r\n## Context\r\nUnable to use AWSSD in .NET core 2.0\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment where the bug was discovered -->\r\n* AWSSDK.Core version used: 3.3.18.2\r\n* Service assembly and version used: \r\n* Operating System and version: windows 7\r\n* Visual Studio version: VS 2017 \r\n* Targeted .NET platform: .NET core 2.0\r\n\r\n## .NET Core Info\r\n<!--- For .NET Core issues, please provide the following -->\r\n* .NET Core version used for development: .NET core 2.0\r\n* .NET Core version installed in the environment where application runs: \r\n* Output of `dotnet --info`: 2.0.2\r\n* Contents of project.json/project.csproj: <<Cannot provide owing to NDA>>\r\n\r\n[logging]: http://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-other.html"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/comments/389369590","html_url":"https://github.com/aws/aws-sdk-net/issues/944#issuecomment-389369590","issue_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/944","id":389369590,"user":{"login":"VenkateshSrini","id":1167152,"avatar_url":"https://avatars1.githubusercontent.com/u/1167152?v=4","gravatar_id":"","url":"https://api.github.com/users/VenkateshSrini","html_url":"https://github.com/VenkateshSrini","followers_url":"https://api.github.com/users/VenkateshSrini/followers","following_url":"https://api.github.com/users/VenkateshSrini/following{/other_user}","gists_url":"https://api.github.com/users/VenkateshSrini/gists{/gist_id}","starred_url":"https://api.github.com/users/VenkateshSrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VenkateshSrini/subscriptions","organizations_url":"https://api.github.com/users/VenkateshSrini/orgs","repos_url":"https://api.github.com/users/VenkateshSrini/repos","events_url":"https://api.github.com/users/VenkateshSrini/events{/privacy}","received_events_url":"https://api.github.com/users/VenkateshSrini/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T01:54:02Z","updated_at":"2018-05-16T01:54:02Z","author_association":"NONE","body":"@normj ,\r\nThanks for your help. I have raised this in corefx repo also. Meanwhile I would like to highlight a scenario. We are working on .NET core projects big time. We have a local installation of S3 with not so proper SSL certificate which results in SSL Error. Just because AWSSDK does not support a feature to skip SSL validation we are unable to consume this SDK from .NET core\r\n\r\nYes not exposing HttpClient is good strategy. But at least you need to expose an property like validateSSL that will skip this validation"}}
{"actor":{"display_login":"VenkateshSrini"}}