GTS Root R1 and R2 for Azure App Services app

Mia Wang 20 Reputation points
2025-04-16T02:17:59.4266667+00:00

Hi Sampath,

Now I managed to complete the operation, but I am still unsure if the new certificates are in use by my App Service app. Here's what I did:

  1. I created the .cer files for GTS R1 and R2 by using the Keychain Access app in my Mac. That was a very straightforward way as it already had the GTS R1 and R2 certificates, and they can be exported as .cer files.
  2. I uploaded the .cer files to app's Public key certificates in Azure.
  3. I added the WEBSITE_LOAD_ROOT_CERTIFICATES definition with thumbprint values to app's Settings > Environment variables > App settings (this is where I think MS instructions are a bit off).

If I now use "dir cert:\localmachine\root" in PowerShell, it still does not show the newly added certificates. I user "az webapp config ssl list --resource-group MyResourceGroup" in cloud shell, also not show added certificates.

I try to use other environment variables "WEBSITE_ROOT_CERTS_PATH" /"WEBSITE_LOAD_CERTIFICATES" to definition with thumbprint, also not show added certificates.

Is there any other way to see if those installed certificates are available as well?

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

Accepted answer
  1. Bhargavi Naragani 6,365 Reputation points Microsoft External Staff Moderator
    2025-04-18T02:26:13.7833333+00:00

    @Mia Wang

    No worries at all, I really appreciate your persistence and your clear updates throughout this process!

    You're absolutely on the right track by reaching out to MongoDB support to confirm which certificate chain their server's use. That will help determine whether GTS Root R1 and R2 are even needed for your current setup.

    The reason you're not seeing GTS R1/R2 in the certificate store could be simply because the server you're connecting to (MongoDB Atlas) is not presenting a certificate chain that requires them at this time. This behavior aligns with Azure App Service's design it will only expose certificates in Cert:\LocalMachine\Root that are either: Used in a TLS connection, or explicitly loaded via WEBSITE_LOAD_ROOT_CERTIFICATES

    If my assistance has been helpful to you, please click Accept Answer and kindly upvote it.

    Looking forward to assisting you any time you need.

    1 person found this answer helpful.

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.