I am pretty new to ELB in AWS stack and have got a requirement where the two components running on two EC2 instance to communicate over TLS and there is a TLS level authentication by component 2 from any incoming session from component 1.
Basically my component 2 is going to open the cert of incoming request at SSL handshaking level, decide using EKU/OID that its coming from some reliable source and then allowing the handshake to succeed.
Now the two components need to go behind an ELB to ensure that its scalable. While going through a couple of resources for ELB, it came to my understanding that ELB terminates the TLS and then may be using an all together new certificate ELB can pass on the request to the instance behind the ELB.
First of all, is this understanding correct. Ideally I need that the TLS originally should pass on to the machine behind ELB so that my authentication logic does not break. Second if there is no way to do that can I do that authentication at ELB level, for that there is a need to do a DB lookup and possibly a small Java program that can open the cert, verify details and then either drop or pass on the message.
Not sure if my ask is even clear or not and for that please drop any comments, but any answer or pointers will be helpful.
-Anurag