Pre-requisites
- Valid server certificate in .pfx format (including private key)
- Password for the .pfx file
- Local administrator access to the DSM server
- Maintenance window (DSM service restart required)
Backup
- Before making any changes, back up the following files from C:\Program Files\Trend Micro\Deep Security Manager
- .keystore
- configuration.properties
- Store the backup in a safe location.
Procedure
- Stop DSM Service
Stop the Trend Micro Deep Security Manager service from Services.msc.
- Prepare Certificate Files
- Create a folder for
C:\cert - Copy all certificate-related files into this folder.
- Ensure the .pfx file is present.
- Rename the certificate to
SeverCertificate.pfx
- Create a folder for
- Rename Existing Keystore
- Navigate to the DSM installation directory:
cd "C:\Program Files\Trend Micro\Deep Security Manager" - Rename the existing keystore:
rename .keystore keystorebak
- Navigate to the DSM installation directory:
- Import Certificate into New Keystore (JKS)
- Navigate to the Java bin directory:
cd "C:\Program Files\Trend Micro\Deep Security Manager\jre\bin" - Run the following command:
keytool -importkeystore -srckeystore "C:\cert\ServerCertificate.pfx" -destkeystore "C:\Program Files\Trend Micro\Deep Security Manager\.keystore" -deststoretype JKS - You will be prompted for the password three times.
- Enter the .pfx password each time.
- Remember this password; it will be required later.
- Navigate to the Java bin directory:
- Convert Keystore to PKCS12 Format
Run the following one-line command:
keytool -importkeystore -srckeystore "C:\Program Files\Trend Micro\Deep Security Manager\.keystore" -destkeystore "C:\Program Files\Trend Micro\Deep Security Manager\.keystore" -deststoretype pkcs12 - Update configuration.properties
- Navigate to:
C:\Program Files\Trend Micro\Deep Security Manager - Copy configuration.properties to the Desktop.
- Open the file using Notepad (Run as Administrator).
- Update the keypass value with the same password used for the .pfx file.
- Save the file with configuration.properties and ensure the extension remains:
.properties - Copy the updated file back to:
C:\Program Files\Trend Micro\Deep Security
(Overwrite the existing file if prompted.)
- Navigate to:
- Start DSM Service
- Start the Trend Micro Deep Security Manager service.
- Wait approximately 5 minutes for the service to initialize.
Validation
- Open the DSM console in a browser.
- Confirm the certificate is updated.
- Access the DSM console using the fully qualified domain name (FQDN) configured in the CA-signed certificate; accessing the console via IP address may still result in browser security warnings.
Rollback Procedure
If the DSM console does not open or issues occur, follow these steps:
- Stop the DSM service.
- Restore the backed-up files:
- .keystore
- configuration.properties
- Start the DSM service again.
