How to run a CCP REST call that ignores certificate authentication

How to run a CCP REST call that ignores certificate authentication

89
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:56 PM


Objective


Powershell is available on all modern Windows machines and can be used to run REST calls which can test the configuration of the CCP webservice as well as the AIM backend like safes and app-IDs

Ignoring certificates can be risky but in test environments the endpoint calling the CCP may not always trust the web certificate installed on the CCP.


 


Environment


9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10

Procedure


To make a basic web call use the following command:
 
Invoke-RestMethod -Method Get -Uri "https://FQDN.local/AIMWebService/api/Accounts?AppID=TestApp&username=Donny" -ContentType application/json

This rest call will need to use the FQDN of the CCP web server as well as trust the signing authority

To make a call that ignores the CCP certificate do the following
 
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
Invoke-RestMethod -Method Get -Uri "https://192.168.50.202/AIMWebService/api/Accounts?AppID=TestApp&username=Donny" -ContentType application/json


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000010PSCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail