DLP allows for communication to be secured between a number of different server and client components, but uses a variety of different keystores and configuration processes to achieve it.
This article aims to provide an overview of these as well as links to pertinent documentation.
15.x
When working with Java keystores, it's useful to put the path to the JRE in the Windows environment variables. This will save you from having to enter the complete path to the keytool.exe, followed by the complete path to the target keystore and certificate file.
The powershell script below will assist with this.
$env:java_home
$env:path
### JRE Default Installation paths by DLP version ###
### CHANGE THESE IF YOU HAVE NOT USED THE DEFAULTS !! #####
$Java155 = "C:\Program Files\Symantec\DataLossPrevention\ServerJRE\1.8.0_181"
$Java157 = "C:\Program Files\Symantec\DataLossPrevention\ServerJRE\1.8.0_202"
$Java158 = "C:\Program Files\AdoptOpenJRE\jdk8u262-b10-jre"
# Assign old and new paths here:
$oldJRE = $Java155
$newJRE = $Java158
[System.Environment]::SetEnvironmentVariable("JAVA_HOME","$newJRE" , [System.EnvironmentVariableTarget]::Machine)
$EnvPath = [System.Environment]::GetEnvironmentVariable("Path","Machine")
[System.Collections.ArrayList]$AddNewPathList = $EnvPath.split(";")
foreach ($epath in ($AddNewPathList))
{
if($epath -like "$oldJRE\bin") {$AddNewPathList.Remove($epath)}
}
if (-not($AddNewPathList.Contains("$newJRE\bin"))){$AddNewPathList.Add("$newJRE\bin")}
$finalPath = $AddNewPathList -join ";"
[System.Environment]::SetEnvironmentVariable("Path",$finalPath,"Machine")
Once this is done you can just type the keytool.exe command without having to enter the full executable path.