자체 호스팅 웹 API 서비스를 만들고 있습니다. 고정하기 위해, 내가 공부하고 this 기사를 구현했습니다, 성공적으로 인증 지역 SSL makecert를 사용하여 인증서 및 내 서비스를 생성하고 내가ASP.NET 자체 호스팅 웹 API에서 SSL 구성
http://localhost/webapi/authentication/authenticate
링크를 사용하고있는 경우, 토큰 잘 생성,하지만 난에 액세스하려고 할 때 HTTPS를 사용하여 내 서비스는 파이어 폭스에서 다음을 얻을 :
와 같은 요청에 대해 피들러가 나를 보여줍니다
SSL_ERROR_RX_RECORD_TOO_LONG :
내 자기 호스트 구성 .. 예기치 않은 패킷 형식으로 인해 실패 ? 미리 감사드립니다.HTTP/1.1 502 Fiddler - 연결 실패 날짜 : 2012 년 8 월 26 일 월요일 10:44:27 GMT Content-Type : text/html; charset = UTF-8 연결 : 닫기 타임 스탬프 : 13 : 44 : 27.433
[Fiddler] localhost에 대한 소켓 연결이 실패했습니다.
에 실패했습니다. server.fiddler.network.https와 HTTPS 연결을 협상합니다. > localhost에 대한 기존 연결을 보호하지 못했습니다. this post에서 촬영 ExtendedHttpSelfHostConfiguration이private HttpSelfHostServer _server; private ExtendedHttpsSelfHostConfiguration _config; public const string ServiceAddress = "https://localhost/webapi"; _config = new ExtendedHttpsSelfHostConfiguration(ServiceAddress); _server = new HttpSelfHostServer(_config); _server.OpenAsync();
입니다
: 나는public class ExtendedHttpSelfHostConfiguration : HttpSelfHostConfiguration { public ExtendedHttpSelfHostConfiguration(string baseAddress) : base(baseAddress) { } public ExtendedHttpSelfHostConfiguration(Uri baseAddress) : base(baseAddress) { } protected override BindingParameterCollection OnConfigureBinding(HttpBinding httpBinding) { if (BaseAddress.ToString().ToLower().Contains("https://")) { httpBinding.Security.Mode = HttpBindingSecurityMode.Transport; } return base.OnConfigureBinding(httpBinding); } }
를 누락 무엇 핸드 쉐이크 는
어쩌면 때문에 http://stackoverflow.com/questions/18442542/ssl-error-rx-record-to-long-on-self-hosted-asp-net-web-api? – I4V
나만의 링크 ** 삭제 ** 게시물 .. –
더 많은 매력을 얻으려면 ** 같은 **을 물어보고 이전 것을 삭제하십시오. – I4V