Trust an ssl certificate on an app service

Jaap van der Wulp - Suneco - 1 Reputation point
2020-11-04T15:38:02.077+00:00

Hi,

I have an app service that is using connecting to an on premise application. My app is perfectly able to connect to the on premise application but on our test and accept environments those applications have ssl certificates on them that the app service does not accept. Normally I would put those certificates in a trusted store to get past these errors. How can I do this for for my app service?

Note, I don't have access to the source code of the application that is running in the app service, so I can't change the code to set System.Net.ServicePointManager.ServerCertificateValidationCallback to allow the certificate.

Jaap

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,637 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,476 Reputation points
    2020-11-09T21:41:59.527+00:00

    You can use following page to add a public certificate to web app to be used to validate the connection to an external server:
    https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate-in-code

    Hope this helps.

    0 comments No comments

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.