SSL Handshake Fail error 525 in Application Gateway

Rajat Srivastava 40 Reputation points
2024-07-12T07:31:53.53+00:00

Hi,

So I have two function app (1 for prod and 1 for test environment). Application Gateway is supposed to expose those function app.

I have created Listener, rules etc for the Test function App. The listener type is multi-site and a valid SSL certificate is uploaded in the Key vault which is pointed by the Application Gateway. The backend settings are supposed to override the hostname and pick the hostname from backend. Cloudflare has the A record entry to point the domain name to the public IP of the App Gateway. The Test env is working fine.

However, for the Prod env, I have the exact same configurations, with a different hostname, a different SSL certificate (created using the same process) and a different backend pool. But I am getting SSL Handshake Fail error 525. I have tried re-uploading the certificate and re-creating the listener. But nothing seems to work.

Can anyone help me troubleshoot this issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,148 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,690 Reputation points Microsoft Employee
    2024-07-12T09:38:46.85+00:00

    Hello @Rajat Srivastava

    Firstly, let's understand what this error means. Error 525 occurs when the SSL handshake between the client and the server fails.

    This can happen due to various reasons such as an invalid SSL certificate, incorrect SSL configuration, or firewall blocking the SSL connection.

    Since you have already tried re-uploading the certificate and re-creating the listener, let's try to narrow down the issue.

    Can you please confirm if the SSL certificate for the production environment is valid and issued by a trusted Certificate Authority (CA)? You can check this by opening the certificate and verifying the details.

    Also, please check if the backend pool for the production environment is configured correctly and the function app is accessible from the backend pool IP address or FQDN.

    If the SSL certificate and backend pool are configured correctly, then it could be a firewall issue.

    Please check if any firewall is blocking the SSL connection between the client and the server. Additionally, you can try enabling diagnostic logging for the Application Gateway to get more information about the error. You can find the logs in the Azure portal under the Application Gateway's Monitoring section.

    I hope this helps


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.