ApplePay Merchant Session - Could not create SSL/TLS secure channel issue

As part of apple pay implementation we are trying to create a merchant session by trying to connect to apple endpoint https://apple-pay-gateway-cert.apple.com/paymentservices/startSession.

While trying to do so we are facing an error “An error occurred while sending the request. The request was aborted: Could not create SSL/TLS secure channel.” .

I call the validation url by passing to a C# .Net Framework 4.8 Web API. The API setups an HttpClient with the Merchant Identity Validation Certificate found in my apple account and calls the validation url passing in the required Json Validation Object. When I call PostAsync() I get an exception with the above error message

Code is working successfully on my local machine but facing this issue while deployed on Dev / Model environment for testing.

We have used Azure app service for deployment and TLS version 1.2 already present here.

We have used the Merchant Identity certificate that was issued and have also checked with networking and infrastructure team to make its not an issue from our side.

Does anyone have any other idea what could be causing this error.

Thank you, Supriya

ApplePay Merchant Session - Could not create SSL/TLS secure channel issue
 
 
Q