2-way SSL with IIS behind ELB

0

A customer is migrating an internal-facing .net microservice to AWS that uses 2-way SSL (client-side authentication) for access control. It's hosted on IIS (Windows Server 2012) in an ASG behind a classic ELB.

The problem is that we can't get 2-way to work with IIS behind the ELB. The ELB is configured to use proxy protocol, and has TCP Listeners on port 443 (In & Out). All in-coming REST requests time-out (system cannot be reached).

Does anyone know how to get 2-Way SSL to work with IIS behind an ELB?

1개 답변
0
수락된 답변

As it turns out, we discovered that our requests were timing out because IIS doesn't support proxy protocol. That's okay, because 2-way SSL doesn't utilize x-forwarded-for headers.

We got it to work as follows:

  1. Configure the ELB to pass-through SSL to the server (Protocol = TCP, Port = 443).

  2. Ensure proxy mode is disabled on the ELB (this is the default setting).

  3. Configure the IIS site to accept client-side SSL certificates, using these instructions.

  4. Client-Side app adds the client-cert to each rest request

  5. Server-Side app's request handler inspects requests for matching client-cert thumbprint

AWS
답변함 7년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인