Hello Chandrashekar, Anil (Cognizant),
To resolve the SSL handshake issue between your containers, ensure that the self-signed certificates for both container1 and container2 have the correct Subject Alternative Names (SANs). The error indicates that the IP address being used is not listed as a SAN in the certificate.
You can address this by:
- Updating your self-signed certificates to include the IP addresses of the containers as SANs.
- Using DNS names instead of IP addresses for communication between the containers, and ensuring the certificates include those DNS names as SANs.
I hope this answers your query! Let me know if you require any additional help or clarification.
This should help prevent the SSL handshake errors you are encountering.