HOW TO

Create a certificate and enable SAML Encrypted Assertions with ArcGIS and Microsoft Entra ID

Last Published: October 3, 2025

Summary

Although Microsoft Entra ID relies on HTTPS/TLS to secure communication and never transmits SAML tokens in the clear, token encryption can still offer an additional layer of security. This knowledge article details how to generate a token-encrypting certificate, enable token encryption in Microsoft Entra ID, and enable Encrypted Assertions in ArcGIS.

Procedure

Before beginning

Create a built-in ArcGIS Enterprise account and make it an Administrator. If Encrypted Assertions are enabled, and either the ArcGIS Enterprise SAML login or Identity Provider are not configured correctly, access to ArcGIS will not be possible. In that case this built-in ArcGIS Enterprise account will allow you to log in to and perform and investigation.

Creating the certificate file

  1. Connect to ArcGIS Enterprise Portal as an administrator.
  2. Navigate to Organization > Settings > Security > Logins.
  3. Click the Configure login hyperlink for your SAML login.
  4. Click the Show advanced settings hyperlink.
  5. Enable the Allow Encrypted Assertion item.
  6. Click the Download service provider metadata hyperlink.
  7. Save the metadata XML file.
Note:
Do not save the SAML login configuration at this time.  Leave it open for now.
  1. Create a new file with a text editor such as VS Code.
  2. Open the metadata XML file with a web browser.
  3. Locate the Public Key used to encrypt objects.

In the XML document look for an entry such as "KeyDescriptor use="encryption"".
The relevant public key is bounded with these XML tags:

<ds:X509Certificate>
</ds:X509Certificate>

The key has a value similar to the following example:

MIIDEzCCAfugAwIBAgIEfbqqHzANBgkqhkiG9w0BAQsFADA5MSAwHgYDVQQLExdTZWxmIFNpZ25lZCBDZXJ0aWZpY2F0ZTEVMBMGA1UEAxMMc2FtbC5kZ
WZhdWx0MCAXDTI1MDYyNjAyNDEzNloYDzIwNTgwNTA0MDI0MTM2WjA5MSAwHgYDVQQLExdTZWxmIFNpZ25lZCBDZXJ0aWZpY2F0ZTEVMBMGA1UEAx
MMc2FtbC5kZWZhdWx0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnVqEkDz8r0qiP1MKPsVHPrenUE4oRWTmBzIftEH5rz26WfeLxwXLlYMBWs
2O5NAGcfyGxKnB0xAGGV3GbXIIc6XA/lkmPxHWq+znSfmf5OeVxvIu0X585xK+f6JKXxWAs5sTeMIKQpO8pImx6MvPMPZKSJt3N+zz1FRXlZ8zoQnvuxhosA1E
XZ02jgM62dTAUaYZLnF9qMmi+LkHS1Y2eQHYKUM1ze4dSLXz8CuzGSq6zOJAVblzXJpeZGUC+gZREZm8TW2QFkRGKIeF4/MnIqOZQIDAQABoyEwHzAdBgN
VHQ4EFgQU5E3ZLYmk2TEQxKD462MH2HiJKyAwDQYJKoZIhvcNAQELBQADggEBAD0raNULrl3I6Eodbl9L1H32smZjUFvlxH/J/9xbhZns7OcC5xc71nsFPNFmwj
tbx2OtDuC1pz6xo/qqpaqd6p6z96TZ+wBiPv7CSQCAvjt0u4jiZsWYx3PXsBgUbxkrG1GGcsA+FRCt2sDHce4n4VUBS/v2XYPQntoXuoO6UjnZQjdRm6Wn0yKo2
9xRmnekDeMPE3Pi//zHBsNoV1o4X1HDbSFToWZ6dvYgONMSdUT6JVlcg7Zp5NJAPbRRP9l5rbM/kvUeTk0ueUWXDcKFsmK47FVu/ECJR0EiwhuMJT3fSYfk5s/t
0DK7Xgf6dcpSGrgvOXgG4UvyLIqSmlriswA=

  1. Copy the key to the text file created at Step 8, above.
  2. Save the file with the extension .cer.

Inspecting the key

Check the validity of the key/certificate by inspecting it with Windows Crypto Shell Extensions.

  1. Log in to Azure portal.
  2. Navigate to Microsoft Entra ID > Enterprise Applications > applicationName > Security > Token encryption.
  3. Click Import Certificate.
  4. Locate the .cer file from Step 12, above.
  5. Click Add.
    • The status of the certificate will display Inactive.
  6. Activate the context menu (three horizontal dots) for the certificate and choose Activate token encryption certificate.
    • The status of the certificate will display Active.
  7. Navigate back to ArcGIS Enterprise and save the SAML login.

Testing the SAML login

Log out and test the SAML login.  If any problem is encountered, follow these steps:

  1. Log in to ArcGIS Enterprise portal with the built-in administrator account.
  2. Disable the Allow Encrypted Assertion item for the SAML login.
  3. Navigate to Microsoft Entra ID > Enterprise Applications > applicationName > Security > Token encryption in Azure Portal.
  4. Inactivate the SAML token encryption certificate.

Article ID: 000036839

Software:
  • ArcGIS Enterprise

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options