Reference: Encryption key recovery portal

The recovery portal is an optional self-service website that users can access if they forget their PIN or password. This website is typically internet-facing in a DMZ so that users who forget their PIN or password can access it from another device.

Note: Do not host this website on the same machine as the database that is used to store the recovery keys.

Requirements

Supported operating systems for the server hosting the recovery portal

  • Amazon Linux 2023

  • Amazon Linux 2 LTS

  • CentOS 8 and later

  • Oracle Linux (OEL) 8 and later

  • Red Hat Enterprise Linux (RHEL) 8 and later

  • Rocky Linux 8.10 and later

  • Ubuntu 22.04 LTS and later

  • Windows Server 2016 or later

Important:
  • The recovery portal installation fails if Security-Enhanced Linux (SELinux) is enabled.

  • If you attempt to install or upgrade the recovery portal on a computer that is not running a supported version of one of these operating systems, the installation fails.

Port requirements

The recovery portal requires the following ports. For more information about Enforce port requirements, see Ports for Enforce communication.
Table 1. Ports required for Enforce recovery portal communication

Inbound

443

TCP

Allows users to access the recovery portal.

Outbound

443

TCP

Allows the recovery portal to access the Tanium Server.

Hardware requirements

  • CPU: 4 Cores

  • RAM: 8 GB

  • Hard Drive: 80 GB

Supported identity providers for authentication

These Identity Providers (IdPs) are supported for use with the recovery portal for both OpenID Connect (OIDC) and security assertion markup language (SAML):

  • Okta

  • Microsoft Entra ID

  • Oracle

  • Active Directory Federation Services (AD FS)

  • Google

Before you begin

Complete the following prerequisites before you configure the recovery portal.

DNS configuration

Verify that DNS resolution is configured correctly for the server where you will host the recovery portal.

Server names must resolve correctly. If necessary, use the local hosts file or create appropriate DNS records to ensure proper name resolution.

Obtain or create SSL certificates

Create a certificate and private key pair, named server.key and server.crt, to use to secure HTTPS traffic from the recovery portal to the user. As a best practice, create a certificate signed by a certificate authority (CA) with the common name (CN) set to the DNS name for the server that is hosting the recovery portal.

Tip:

You can use a self-signed certificate for testing. Use the following OpenSSL command to generate a self-signed certificate:

CODE
.\openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt

When prompted, set the Common Name (CN) to match the DNS name of the server hosting the recovery portal.

Create a Tanium persona or user and API token

Create a dedicated Tanium persona or user that has the Enforce Recovery Portal role granted, an API token to enable secure access to the recovery portal, and the appropriate computer management groups assignments.

Tanium persona or user

If you use a persona for this purpose, assign the persona to a user account. This user can be a service account or your own user account, depending on your setup.

If you assign the persona to your own user account, refresh the page or sign out of and back in to Tanium Console to ensure that the changes appear when you generate the API token.

Note: Ensure that this user has computer management group assignments for all endpoints with BitLocker policy enforcements.

API token

Create an API token for the recover portal to use when authenticating with the Tanium Server. For more information, see Enabling long-lived Tanium sessions through API tokens.

Important:
  • Include the IPv4 and IPv6 formats in the Trusted IP addresses: x.x.x.x/x,::/x (and not just x.x.x.x/x) or the configuration will fail.

  • Record the API token in a secure location to use when you install the recovery portal.

Note details about your configuration

Note the following identifiers for your environment to use during the configuration of the recovery portal:

  • Tanium Server API URL

  • Recovery Portal FQDN

  • User Domain Name (for sign-in)

  • SSO Redirect URL

(Microsoft Entra) Create a Microsoft Entra enterprise application and configure an identity provider

If you are using Microsoft Entra, complete these steps to create and register a custom enterprise application in Microsoft Entra to enable single sign-on (SSO) integration for the recovery portal.

Note: This section describes one way to configure this integration. You might need to modify these steps and the suggested selections and values depending on your environment. Ensure that you test this configuration in a lab or test environment before you use it in a production environment. Consult the Microsoft documentation for detailed steps. For more information, see Microsoft Entra Documentation: Register an application in Microsoft Entra ID

Create an enterprise application

  1. In Microsoft Entra, go to Applications > Enterprise applications.
    entra_enterprise_apps
  2. Click New application.
    entra_new_app
  3. Click Create your own application.
    entra_create_app
  4. Specify a name for the application. For example, BitLocker Recovery Portal.
  5. Select this option: Integrate any other application you don’t find in the gallery.
    entra_name_app
  6. Click Create.

Assign users or groups to the enterprise application

To enable SSO access to the BitLocker Recovery Portal, users must be granted access to the Entra enterprise application. You can assign individual users or groups.

  1. In Microsoft Entra, open the application, and on the Overview page, select Assign users and groups.
    entra_assign_users
  2. Click Add user/group.
    entra_add_user
  3. In the resulting panel, click None Selected.
    entra_none_selected
  4. Search for and select the appropriate users and groups.
  5. Click Select to confirm your choices.
    entra_select
  6. Click Assign to complete the application assignment.

Set up the Identity Provider and SSO

Part 1: Configure the initial IdP Settings in Enforce

  1. From the Main menu, go to Modules > Enforce to open the Enforce Overview page.
  2. Click Settings cog and then click Endpoint Encryption > Add Identity Provider.
  3. Configure the identity provider settings:
    • Domain: Used by the recovery portal to identify the correct identity provider. Format: <second-level domain>.<top-level domain>. For example, if you specify mydomain.com, users sign in with username@mydomain.com.
    • Type: Select SAML.
    • Content Set: Select Enforce (default value).
    • Recovery Application Domain: Provide the fully qualified domain name (FQDN) of the recovery portal server.
  4. In the SSO Redirect URL section, click Copy to clipboard copy-no-background. Save this value to use in Microsoft Entra.
    Note: This field appears when you specify the Recovery Application Domain.
  5. Leave this page open and return to Microsoft Entra to configure the identity provider.

Part 2: Configure the IdP settings in Microsoft Entra

  1. In Microsoft Entra, go to Applications > Enterprise applications. Open the application that you created in the previous section.
  2. In the Manage section, click Single sign-on > SAML.
  3. In the Basic SAML Configuration section, click Edit and specify the following parameters:
    1. Identifier (Entity ID): https://<portal server FQDN>:443/<domain.name>/saml/acs
      Important: You copied this value when you configured the initial settings in Enforce. Ensure that you add the port number to this URL when you specify it in Microsoft Entra. The port number is not included in the value that you copied.
    2. Reply URL: https://<portal server FQDN>. Leave the Index value blank.
    3. Sign-on URL: https://<portal server FQDN>/<domain.name>/saml/acs

    Click Save and close that page, if needed, to return to the SAML-based Sign-on page.

  4. In the Attributes & Claims section, click Edit.
  5. Click Add new claim and specify the details:
    1. Name: Enter email.
    2. Source: Select Attribute.
    3. Source Attribute: Select user.userprincipalname
      Note: This value might vary depending on your Tanium and Entra environments. If the user names do not align to this value, adjust the SAML attributes and claims to align to the user names in your environment.

    Click Save and close that page, if needed, to return to the SAML-based Sign-on page.

  6. In the SAML Certificates section, in the Token Signing Certificate subsection, either copy the App Federation Metadata URL or download the Federation Metadata XML. Return to Enforce to complete the configuration.

Part 3: Complete the IdP settings in Enforce

  1. On the same Add Identity Provider page that you left open in part 1, in the Required Identity Provider Entries section, select I have updated my SAML provider with the required information.
  2. In the SAML Settings section, select File or URL, depending on whether you copied the App Federation Metadata URL or downloaded the Federation Metadata XML in the previous part and provide the URL or drag and drop the file.
  3. In the Attribute Mapping section, specify email in the Email field.
    Note: This value must match the name associated with the claim that you added in the Attributes & Claims section in Entra in Part 2.
  4. (Optional) In the Branding section, drag and drop the image files that you want to use for the Site Logo, Site Icon, Site Background.
  5. Click Add.
  6. (Optional) If needed, click Add Identity Provider to add more IdP configurations.
  7. In the Recovery Portal Servers section, click Download to download the recovery portal installer for this configuration.

(Other Identity Providers) Set up an identity provider and SSO

The recovery portal requires OIDC or SAML authentication with Service Provider (SP) initiated SSO. You can configure a recovery portal to use more than one IdP or authentication protocol and then use content sets to associate an IdP with a user group.

Prerequisites

Complete these prerequisites before you install the recovery portal server.

Configure the recovery portal

Note: You must have the Enforce Recovery Portal write permission to configure and edit these settings. For more information, see User role requirements.
  1. From the Main menu, go to Modules > Enforce to open the Enforce Overview page. Click Settings cog and then click Endpoint Encryption > Encryption Key Recovery Portal > Configure Identity Providers.
  2. Enter the following information for the recovery portal server:
    1. Enter the Domain. This value is the domain associated with this identity provider.
    2. Select the identity provider protocol: SAML or OIDC.
    3. If you do not want to use the default content set, Enforce, assign a Content Set for this IdP.
      Tip: You can use this content set to associate an IdP with a user group.
    4. Specify the Recovery Application Domain. This value is the domain for the recovery portal server web server.
      Note: This value is not stored, and therefore cannot later be edited in the IdP configuration. If this domain changes after the initial configuration, update the entry in your IdP.
    5. Configure the IdP settings:

      SAML:

      1. Update your IdP with the SSO Redirect URL that is in the Required Identity Provider Entries section.

        You must update this entry before you provide your IdP metadata to Tanium. After you update your IdP with the SSO Redirect URL, select I have updated my SAML provider with the required information.

      2. In the SAML Settings section, select how you want to provide metadata (File or URL) and complete one of the following steps.

        • For File: Upload the XML metadata file from your IdP.

        • For URL: In the URL field, enter the URL for your IdP metadata.

      3. In the Email field, enter the name of the attribute from your IdP that contains the email address that you want users to use to sign in to the recovery portal. For example, enter http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress.

      OIDC:

      1. Update your IdP with the Redirect URI that is in the Required Identity Provider Entries section.

        You must update this entry before you provide your IdP metadata to Tanium. After you update your IdP with the Redirect URI, select I have updated my OIDC provider with the required information.

      2. In the OIDC Settings section, enter the following information from your IdP.

        Table 2. OIDC settings
        Client ID

        A unique, public identifier from your identity provider.

        Client Secret

        A secret that is known only by the identity provider and the authorization server. It is often encrypted or hashed.

        Issuer

        The URL of the IdP that allows the API server to find the public signing keys for the IdP. Must begin with https://.

      3. In the Email field, enter the name of the attribute from your IdP that contains the email address that you want users to use to sign in to the recovery portal. For example, enter email.

    6. (Optional) In the Branding section, drag and drop the image files that you want to use for the Site Logo, Site Icon, Site Background.
    7. Click Add.
    8. (Optional) If needed, click Add Identity Provider to add more IdP configurations.
  3. In the Recovery Portal Servers section, click Download to download the recovery portal installer for this configuration.

(Windows) Install and configure the recovery portal

  1. Upload the recovery portal installation file that you downloaded in a previous section to a location on the server that hosts the recovery portal.
  2. Change to the location where you uploaded tanium-key-recovery-portal.zip and extract the files.
  3. Change to the directory where you extracted the files.
  4. Copy the TLS certificates that you created for the server to the \<directory where you extracted the files>\configs directory on the recovery portal server. Create the configs folder in this location if it does not exist. If you have a trusted.crt certificate, put the trusted.crt certificate in the parent directory. The installation process copies this certificate to the \<directory where you extracted the files>\configs directory.
  5. Run the Windows installation script, install.ps1, using a PowerShell prompt with administrator privileges: ./install.ps1.

    As the script runs, you are prompted for the following details:

    1. Specify whether you are upgrading an existing installation.

    2. Specify the Tanium Server URL.

    3. Specify whether the Tanium Server is Cloud-based.

    4. Provide the API token that you created for use with the recovery portal server.

    5. Enter the DNS name or IP address of the recovery portal server.

    6. Specify the service port. By default, this port is 443. If you are using a custom port, ensure that your IdP configuration uses the same port.

  6. After the installation script runs, check the status of the recovery portal by opening the recovery portal from a web browser using the recovery portal hostname.
    Note:

    You can also check the status of the recovery portal in the Enforce settings: From the Main menu, go to Modules > Enforce to open the Enforce Overview page. Click Settings cog and then click Endpoint Encryption > Recovery Portal.

    Example screen capture from Enforce that shows the recovery portal status
    Important: The nameID format from the IdP application user name and the format for the recovery key viewer (Enforce > Endpoint Encryption > Recovery Keys) must match. For example, if user names in the recovery key viewer are formatted as firstname.lastname, then the IdP format must also be firstname.lastname. If the IdP application uses the format username@domain.com, then the recovery key viewer must use username@domain.com. If these formats do not match, users cannot view their keys.

(Linux) Install and configure the recovery portal

  1. Upload the recovery portal installation file that you downloaded in a previous section to a location on the server that hosts the recovery portal.
    Note: Use the /var/www/tanium-enforce-recovery-portal directory on the server.
  2. Change to the location where you uploaded tanium-recovery-key-portal.zip and extract the files.
  3. Change to the directory where you extracted the files.
  4. Copy the TLS certificates that you created for the server to the /<directory where you extracted the files>/configs directory on the recovery portal server. Create the configs folder in this location if it does not exist. If you have a trusted.crt certificate, put the trusted.crt certificate in the parent directory. The installation process copies this certificate to the \<directory where you extracted the files>\configs directory.
  5. Make the installation script executable: chmod +x install.sh.
  6. Run the installation script using sudo: sudo ./install.sh.

    As the script runs, you are prompted for the following details:

    1. Specify whether you are upgrading an existing installation.

    2. Specify the Tanium Server URL.

    3. Specify whether the Tanium Server is Cloud-based.

    4. Provide the API token that you created for use with the recovery portal server.

    5. Enter the DNS name or IP address of the recovery portal server.

    6. Specify the service port. By default, this port is 443. If you are using a custom port, ensure that your IdP configuration uses the same port.

    7. Specify a user on the server running the recovery portal to use for running the service. For example, root.

    8. Specify a group on the server running the recovery portal to use for running the service. For example, root.

  7. After the installation script runs, check the status of the recovery portal using the following command: systemctl status tanium-key-recovery-portal.service
    Note:

    You can also check the status of the recovery portal in the Enforce settings: From the Main menu, go to Modules > Enforce to open the Enforce Overview page. Click Settings cog and then click Endpoint Encryption > Recovery Portal.

    Example screen capture from Enforce that shows the recovery portal status
    Important: The nameID format from the IdP application user name and the format for the recovery key viewer (Enforce > Endpoint Encryption > Recovery Keys) must match. For example, if user names in the recovery key viewer are formatted as firstname.lastname, then the IdP format must also be firstname.lastname. If the IdP application uses the format username@domain.com, then the recovery key viewer must use username@domain.com. If these formats do not match, users cannot view their keys.

Add or update IdP providers

From the Main menu, go to Modules > Enforce to open the Enforce Overview page. Click Settings cog and then click Endpoint Encryption > Recovery Portal > Edit Identity Providers edit2. To edit an existing IdP, select an IdP and click Edit edit2. To add a new Identity Provider, click Add Identity Provider and complete the steps in the Configure the recovery portal section. After you are finished, download and install the recovery portal again. For more information, see (Windows) Install and configure the recovery portal or (Linux) Install and configure the recovery portal.

Figure 1. Add an Identity Provider
Example screen capture from Enforce that shows the link to configure additional identity providers

Replace the SSL certificates

Windows

Complete these steps on the machine hosting the recovery portal to replace expiring SSL certificates.

  1. Stop the tanium-key-recovery-portal service.
  2. Rename the existing certificates, which should be server.crt and server.key in the \<directory where you extracted the recovery portal installation files>\configs directory on the recovery portal server.
  3. Copy the new certificates to the \<directory where you extracted the recovery portal installation files>\configs directory on the recovery portal server.
  4. Start the tanium-key-recovery-portal service.

Linux

Complete these steps on the machine hosting the recovery portal to replace expiring SSL certificates.

  1. Run this command to stop the recovery portal service: sudo systemctl stop tanium-key-recovery-portal.service.
  2. Rename the existing certificates, which should be server.crt and server.key in the /<directory where you extracted the recovery portal installation files>/configs directory on the recovery portal server.
  3. Copy the new certificates to the /<directory where you extracted the recovery portal installation files>/configs directory on the recovery portal server.
  4. Run these commands to start the recovery portal service:
    1. systemctl start tanium-key-recovery-portal.service
    2. systemctl status tanium-key-recovery-portal.service

Update the recovery portal

Recovery portal functionality matches the associated Enforce version. When an Enforce release includes an update to the recovery portal, you must uninstall and reinstall the recovery portal using a configuration file generated from that version of Enforce. To determine whether a release requires an update to the recovery portal, check the Enforce release notes.

Uninstall the recovery portal

To uninstall the recovery portal, run the uninstall script that is located in the directory where you extracted the installation files:

  • (Linux) uninstall.sh

  • (Windows) uninstall.ps1

Note: The portal certificates located in the configs directory are deleted when you uninstall the recovery portal. If you want to preserve these certificates, copy them to another location before uninstalling.

End user self-service workflow

To retrieve their recovery key, end users access the recovery portal from a web browser. They enter an email address associated with an identity provider configured for the portal and click the Sign in with SSO link.
Figure 2. Recovery portal sign in
Enter the email address and click Sign in with SSO
This action redirects them to the identity provider, where they enter their SSO credentials. After authentication, users are redirected back to the recovery portal and prompted to select their operating system.
Figure 3. Operating system selection
users can select Windows or Mac as the operating system for the recovery portal
After they select their operating system, they can search for their recovery key using either the recovery key ID (which is typically provided on the operating system recovery page) or the computer name for the endpoint.
Figure 4. Recovery key search options
Select to search by recovery key ID or computer name

After they retrieve their recovery key, they can provide the recovery key on the operating system recovery page to access the operating system.

Note: Users can only access their own recovery keys. Ownership is determined by the user who was signed in to the operating system when the key was generated.