Security Controls REST API
REST API Configuration and Setup Script
The configuration steps described in this section are not necessary if you are executing REST API commands from the console machine.
If you are executing REST API commands from a remote machine, you must configure a secure, trusted connection by importing the console certificate to the remote machine. You can do this manually or you can use a custom PowerShell setup script provided by Ivanti that will automatically perform these steps for you.
Option 1: Manual Configuration Process
1.Export the ST Root Authority certificate from the Trusted Root Authority store on the console machine.
2. Import the certificate to the Trusted Root Authority on the remote machine.
Option 2: Automatic Configuration Process Using the Setup Script
If you are not certain how to perform the manual configuration process or if you simply don't want to go through the hassle, Ivanti provides a PowerShell script that will automatically perform all the necessary steps for you.
1.Retrieve the PowerShell script from the console and copy it to the remote machine.
To retrieve the PowerShell script, within Security Controls select Tools > Options > API. Click Save script to file and provide a name for the file (for example, RemoteRestAPIClientSetup.ps1).
2.On the remote machine, launch Windows PowerShell and run the script.
Be sure to specify Run as Administrator when launching PowerShell.
If after completing the configuration process you are still getting an invalid certificate error, ensure any alias that may exist for the console system is defined using the Console Alias Editor. This includes differentiating between the machine name and the FQDN.
Was this article useful?
The topic was:
Not what I expected
Copyright © 2019, Ivanti. All rights reserved.