--- title: "Fortanix DSM for NGINX TLS Keys" slug: "using-fortanix-dsm-for-nginx-tls-keys" updated: 2026-08-19T15:14:27Z published: 2026-08-19T15:14:27Z canonical: "support.fortanix.com/using-fortanix-dsm-for-nginx-tls-keys" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.fortanix.com/llms.txt > Use this file to discover all available pages before exploring further. # Fortanix DSM for NGINX TLS Keys ## 1.0 Introduction NGINX is a popular open-source HTTP server and reverse proxy. **Fortanix-Data-Security-Manager (DSM)** can be used to protect the TLS private key for your NGINX server, keeping the private key secure even if the host running NGINX is compromised. This article describes how to set up your NGINX server to use a TLS private key stored in Fortanix DSM. To get started quickly, you can use a [Fortanix-provided docker image](https://hub.docker.com/r/fortanix/sdkms-nginx/). Retrieve the image by running `docker pull fortanix/sdkms-nginx`. ## 2.0 Configure Fortanix DSM A Fortanix DSM service must be configured, and the URL must be accessible. To create a Fortanix DSM account and group, refer to the following sections: ### 2.1 Signing Up To get started with the Fortanix DSM cloud service, you must register an account at . For example, [https://amer.smartkey.io.](https://amer.smartkey.io.) On-premises customers use the KMS URL, and the SaaS customers can use the URLs as listed [*here*](https://support.fortanix.com/hc/en-us/articles/4406135346068-Fortanix-DSM-SaaS-Global-Availability-Map) based on the application region. *For more information on how to set up the Fortanix DSM, refer to* [*Sign Up for Fortanix Data Security Manager SaaS*](https://support.fortanix.com/docs/users-guide-sign-up-for-fortanix-data-security-manager-saas)*.* ### 2.2 Creating an Account Access in a web browser and enter your credentials to log in to Fortanix DSM. ![](https://cdn.us.document360.io/c3bd85d2-4ad8-4d85-9f60-f1c168a3aad9/Images/Documentation/DSM_SaaS_Login_page(15).png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A04%3A02Z&se=2026-11-24T19%3A04%3A02Z&sr=b&sp=r&sig=U%2FKmwCrLRxsyRIPO8%2B060l0UraPav9%2Bj4Hr12sfkeNE%3D) **Figure 1: Logging in** *For more information on how to set up an account in Fortanix DSM, refer to* [*Getting Started with Fortanix Data Security Manager - UI*](https://support.fortanix.com/docs/users-guide-getting-started-with-fortanix-data-security-manager-ui)*.* ### 2.3 Creating a Group Perform the following steps to create a group in the Fortanix DSM: 1. In the DSM left navigation panel, click the **Groups** menu item, and then click **ADD GROUP** to create a new group. ![](https://cdn.us.document360.io/c3bd85d2-4ad8-4d85-9f60-f1c168a3aad9/Images/Documentation/Add-Group(79).png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A04%3A02Z&se=2026-11-24T19%3A04%3A02Z&sr=b&sp=r&sig=UJ8JNf31KpY1p5qVTl5et8OYFmZkkFKfRVaY8LFfoK4%3D) **Figure 2: Add groups** 2. On the **Adding new group** page: 1. **Title**: Enter a name for your group. 2. **Description** (optional): Enter a short description of the group. 3. Click **SAVE** to create the new group. *For more information about groups, refer to* [*Definitions*](/v1/docs/dsm-definitions#40-groups)*.* > [!TIP] > TIP > > It is recommended to configure a **Key undo policy** for groups for the cryptographic keys used by the application before creating or using the keys. Without a configured **Key undo policy**, key deletion is permanent and the deleted key cannot be recovered. Deleting an encryption key may result in permanent loss of access to the protected data and service disruption for applications that depend on the deleted key. *For detailed steps, refer to* [*Key Undo Policy*](/v1/docs/fortanix-dsm-key-undo-policy)*.* ### 2.4 Creating an Application Perform the following steps to create an application (app) in the Fortanix DSM: 1. In the DSM left navigation panel, click the **Apps** menu item, and then click **ADD APP** to create a new app. ![](https://cdn.us.document360.io/c3bd85d2-4ad8-4d85-9f60-f1c168a3aad9/Images/Documentation/Add-App(26).png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A04%3A02Z&se=2026-11-24T19%3A04%3A02Z&sr=b&sp=r&sig=uoAVf8fpaSjGou8YOtAx%2BaLVyyusC2fik26hLsI8lAw%3D) **Figure 3: Add application** 2. On the **Adding new app** page: 1. **App name**: Enter the name for your application. 2. **ADD DESCRIPTION** (optional): Enter a short description of the application. 3. **Authentication method**: Select the default **API Key** as the authentication method from the drop down menu. *For more information on these authentication methods, refer to* [*Authentication*](/v1/docs/dsm-authentication)*.* 4. **Assigning the new app to groups**: Select the group created in [*Section 2.3: Creating a Group*](/v1/docs/using-fortanix-dsm-for-nginx-tls-keys#23-creating-a-group) [](/v1/docs/using-data-security-manager-with-idcentral-key-management#43-creating-a-group)from the list. 3. Click **SAVE** to add the new application. *For more information about applications, refer to* [*Definitions*](https://support.fortanix.com/docs/dsm-definitions#50-applications)*.* ### 2.5 Copying the API Key Perform the following steps to copy the API key from the Fortanix DSM: 1. In the DSM left navigation panel, click the **Apps** menu item, and then click the app created in [*Section 2.4: Creating an Application*](/v1/docs/using-fortanix-dsm-for-nginx-tls-keys#24-creating-an-application) [](/v1/docs/using-data-security-manager-with-idcentral-key-management#44-creating-an-application)to go to the detailed view of the app. 2. On the **INFO** tab, click **VIEW API KEY DETAILS**. 3. From the **API Key Details** dialog box, copy the **API Key** of the app to be used in [*Section 4.0: Install the TLS Key and Certificate*](/v1/docs/using-fortanix-dsm-for-nginx-tls-keys#40-install-the-tls-key-and-certificate). ## 3.0 Obtain a TLS Key and Certificate The [*Managing Fortanix Data Security Manager Keys With OpenSSL and PKCS#11 Tool*](/v1/docs/managing-fortanix-data-security-manager-keys-with-openssl-and-pkcs11-tool) article outlines multiple methods for generating or importing a TLS key and certificate. If you’re unsure which method to choose and just want a quick way to test, *refer to* [*Section 3.0: Obtain a TLS Key and Certificate*](/v1/docs/using-fortanix-dsm-for-nginx-tls-keys#30-obtain-a-tls-key-and-certificate)*.* ## 4.0 Install the TLS Key and Certificate Create a file `docker.env` to configure the container. In the template below, change the API key and the key and certificate labels. The PKCS#11 label and Fortanix DSM Security-object description are the same. You can obtain this either from the commands you used to import the key or from the web interface in the security object detail view. The API key is sensitive, so for production deployments, this file should be protected appropriately. ```bash FORTANIX_API_ENDPOINT=https:// FORTANIX_API_KEY= FORTANIX_PKCS11_LIBRARY=/usr/lib/x86_64-linux-gnu/pkcs11/fortanix-sdkms-pkcs11.so FORTANIX_PRIVATE_KEY_LABEL=