'Bad Request This combination of host and port requires TLS.' issue calling springboot app running as azure container app

Chandrashekar, Anil (Cognizant) 40 Reputation points
2025-03-11T20:08:49.7966667+00:00

Hi

Im facing 'Bad Request This combination of host and port requires TLS.' issue calling a springboot application deployed as azure container app. This springboot application is running on https and ssl enabled.

The container app has ingress enabled. Im using container app url(https) Ito hit the end point hosted on the springboot application. Looks like though the springboot app runs on https, calls to container app are routed as http resulting in TLS error.

Ex container endpoint;- https://abcservicecnt.bforest-xyz.westus3.azurecontainerapps.io/my-end-point

Any help would be appreciated. Thanks.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
691 questions
{count} votes

Accepted answer
  1. Shireesha Eeraboina 3,435 Reputation points Microsoft External Staff Moderator
    2025-03-19T07:20:31.8966667+00:00

    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:

    1. Updating your self-signed certificates to include the IP addresses of the containers as SANs.
    2. 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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.