Configure the platform using a script through the command line
The next step for scripting a command-line installation and configuration is to add the command to the script to configure the platform's settings. You can use the script file you started creating in Install the MSI file from the command line.
Configuring the platform from the command line requires you have an XML answer file that contains the product and feature information for each specific Venafi server. For more information on answer files, see Creating and using answer files.
To script the configuration for the first Venafi server with an empty database
NOTE Only use this step the first time you install Venafi Trust Protection Platform against a new database.
-
Using your text editor to edit the batch file, add the following command:
"[installation directory]\Venafi\Platform\TppConfiguration.exe" -install:"[path to answer file]" -password:[encrypted answer file password]
For example, to install Trust Protection Platform as a first-time installation from the default installation directory using a previously-created answer file located in
c:\WebServicesAnswerFile.xml
, you would use the following command:Echo Configuring Venafi Trust Protection Platform
"c:\Program Files\Venafi\Platform\TppConfiguration.exe" -install:"C:\WebServicesAnswerFile.xml" -password:ExamplePassword
To script the configuration for all additional servers with an existing database
If this is only a two-server deployment, you will use need to export the software encryption key from the first server (see Backing up the software encryption key), add that key to the answer file, and then use the new answer file on the second server.
If you are using three or more Venafi servers, you will need a custom answer file for each server type (web services, Logging event processing, back-end processing servers, or agent processing).
When scripting for second, third, or more servers you use the -add
switch at the end of the installation command.
-
Using your text editor to edit the batch file, add the following command:
"[installation directory]\Venafi\Platform\TppConfiguration.exe" -install:"[path to answer file]" -password:[encrypted answer file password] -add
For example, to install Trust Protection Platform as a first-time installation from the default installation directory using a previously-created answer file located in
c:\Back-EndProcessingAnswerFile.xml
, you would use the following command:Echo Configuring Venafi Trust Protection Platform
"c:\Program Files\Venafi\Platform\TppConfiguration.exe" -install:"C:\Back-EndProcessingAnswerFile.xml" -password:ExamplePassword -add
For a comprehensive list of command line switches for TppConfiguration.exe
, see Command line configuration switches.