GTS Root R1 and R2 for Azure App Services app

Sami Inkinen 20 Reputation points
2025-03-06T09:19:46.66+00:00

I am using Mongo Atlas as DB for my Azure App Services app. It has been so far using Let's Encrypt as the CA for TLS certificates, but soon it requires that also GTS Root R1 and GTS Root R2 are included. As my technical understanding on this topic is limited, please help me in:

  1. Are those GTS's included by default for Azure App Services?
  2. If not, what are the relevant install/config instructions?
  3. As so far Let's Encrypt has been used, I would assume I would see it configured somewhere. Where should I find this? I don't recall doing any installation/setting for it. I assume the GTS config should be similar.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,442 questions
{count} votes

Accepted answer
  1. Sampath 915 Reputation points Microsoft External Staff
    2025-03-10T07:08:52.6333333+00:00

    Hello @Sami Inkinen,

    To ensure your Azure App Service works properly with MongoDB Atlas, which now requires GTS Root R1 and GTS Root R2, follow these steps:

    Check if GTS Root R1 and R2 are Already Trusted

    Azure App Service maintains a list of trusted root certificates. You need to check if GTS Root R1 and GTS Root R2 are included.

    For Windows-based App Services:

    Open Kudu In the Azure Portal, go to your App Service.

    • Under Development Tools, click Advanced ToolsGo.

    Open the PowerShell console and run:

     dir cert:\localmachine\root
    

    Look for GTS Root R1 and GTS Root R2 in the output.

    For Linux-based App Services:

    1. Open SSH in Kudu and Run:
         cd /etc/ssl/certs
         
         ls | grep GTS
      
    2. If GTS Root R1 and GTS Root R2 appear, you’re good to go.

    Adding GTS Root Certificates (If Not Present)

    If they are missing, follow these steps based on your App Service type:

    For Multi-Tenant App Services (Free, Basic, Standard, Premium Plans):

    • You cannot manually modify the root certificate store.
    • Check with Azure Support to confirm if GTS certificates will be added automatically.
    • If your app fails TLS validation, consider switching to an App Service Environment (ASE).

    For App Service Environment (ASE) :

    • Download GTS Root R1 and GTS Root R2 as .CER files (Base64-encoded) .
    • In Azure Portal, go to your App Service under TLS/SSL settings > Private Key Certificates (.pfx).
    • Click Upload Certificate, and upload both GTS root certificates.

    enter image description here

    • Add this setting in Application Settings and Restart the App Service :
        WEBSITE_LOAD_ROOT_CERTIFICATES = <Thumbprint_of_GTS_Root_R1>,<Thumbprint_of_GTS_Root_R2>
      

    If your App Service has been working fine with Let's Encrypt, it means the necessary Let's Encrypt certificates were already trusted by default.

    • You might not have explicitly configured Let's Encrypt since MongoDB Atlas ensures its certificates are valid.
    • If GTS Root R1 and R2 are required, they should be available in the trusted store. Check first if GTS Root R1 and R2 are already trusted. If not, contact Azure Support for multi-tenant plans and manually upload the certificates and configure WEBSITE_LOAD_ROOT_CERTIFICATES.

    For more details, see Azure’s Root CA Guide.

    Hope this helps!

    If you found this answer helpful, please click Accept Answer and kindly upvote it.

    Accept Answer

    If you have any further questions, please click Comment.

    0 comments No comments

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.