Hello @nikh3 ,
I understand that you are getting "400 The SSL certificate error" from Azure Application Gateway with mutual TLS/authentication.
As mentioned in the Application Gateway mutual authentication document,
Client certificate revocation can be enabled via REST API, ARM, Bicep, CLI, or PowerShell.
To verify OCSP revocation status has been evaluated for the client request, access logs will contain a property called "sslClientVerify
", with the status of the OCSP response.
So, I requested you to check the Application gateway access logs and search for the property called sslClientVerify
and check its status.
For more detailed troubleshooting, please refer the below document:
https://learn.microsoft.com/en-us/azure/application-gateway/mutual-authentication-troubleshooting
You checked the troubleshooting guide, but your case was not listed there, and you also could not find the sslClientVerify
in the access logs.
However, the hint to the OCSP was helpful in finding the root cause of your issue.
You did configure the verify_client_certificate_revocation
setting in Terraform to OCSP
as it was the only allowed value, but you missed the part that it's optional and since your generated certificates don't have that configured, it was not working.
You've now disabled it, and the client certificate is accepted by the Application Gateway.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.