--- title: "Generate a keystore" slug: "generate-a-keystore-3" tags: ["Product Usage", "DS 10.x", "Database Security"] updated: 2026-09-10T15:20:37Z published: 2026-09-10T15:20:37Z canonical: "docs.trellix.com/generate-a-keystore-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Generate a keystore Generate a keystore to store the certificates used by Database Security server. You can generate a **new keystore** using the **keytool** executables. After installing the Database Security server, you can find the **keytool** executable at: - For Database Security server 4.6.6 and later — `<Server install root>\McAfee\McAfee Database Security\java\zulu_jre8_0_181\bin\keytool.exe` - For Database Security server 4.6.5 and earlier — `<Server install root>\McAfee\McAfee Database Security\java\jre6\bin\keytool.exe` - For Database Security server - `<Server install root>\McAfee\Trellix Database Security\java\zulu8.70.0.23-ca-jre8.0.372-win\bin\keytool.exe` Example: `C:\Program Files\McAfee\Trellix Database Security\java\zulu8.70.0.23-ca-jre8.0.372-win\bin\keytool.exe` For more information about the keytool utility, see: [Keytool](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html). > [!NOTE] > Note > > Database Security server only supports Keystore’s of **JKS** type. 1. Generate a **new keystore** containing a new key: `<keytool dir>/keytool -genkey -alias tomcat -keystore newkeystore -keyalg RSA -keysize 2048` 2. Type the keystore password: `changeit` 3. For first and last name, type the host name of the computer where the Database Security server is installed. 4. Type the organization information. 5. Type the city and province information in the respective prompt. 6. Type `yes` to confirm the information. A new file with the name **newkeystore** is created. Sample Output The following is an example of the output (with sample input) to generate a **new keystore**: `C:\Program Files\McAfee\Trellix Database Security\zulu8.70.0.23-ca-jre8.0.372-win\bin>keytool -genkey -alias tomcat -keystore newkeystore -keyalg RSA -keysize 2048` `Enter keystore password:` `Re-enter new password:` `What is your first and last name?` `[Unknown]: Dan deMan` `What is the name of your organizational unit?` `[Unknown]: mycompany.com` `What is the name of your organization?` `[Unknown]: Mycompany` `What is the name of your City or Locality?` `[Unknown]: Santa Clara` `What is the name of your State or Province?` `[Unknown]: CA` `What is the two-letter country code for this unit?` `[Unknown]: US` `Is CN=Dan deMan, OU=mycompany.com, O=Mycompany, L=Santa Clara, ST=CA, C=US correct?` `[no]: yes`