<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article CCP - Client Certificate Authentication - Example Script in Secrets Management Articles</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-client-certificate-authentication-example-script/ta-p/1428840</link>
    <description>The below PowerShell scripts shows examples of how the CCP can be called using a client certificate for authentication.&lt;BR /&gt;&lt;BR /&gt;These scripts are provided on &lt;STRONG&gt;example basis only&lt;/STRONG&gt;, and assume SSL verification is successful between the client and the CCP server.&lt;BR /&gt;&amp;nbsp;
&lt;P&gt;&lt;U&gt;CCP API Request example (this is the format expected in the first two scripts below):&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;https://ccp.cybr.com/AIMWebService/api/Accounts?appid=sampleapp&amp;amp;safe=demosafe&amp;amp;address=1.1.1.1&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;For use with .cer certificate file:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12&lt;BR /&gt;$URI = "&lt;STRONG&gt;CCP API request&lt;/STRONG&gt;"&lt;BR /&gt;$cert = "&lt;STRONG&gt;Absolute path of .cer file&lt;/STRONG&gt;"&lt;BR /&gt;$res = (Invoke-RestMethod -Method Get -Uri $URI -Certificate $cert)&lt;BR /&gt;echo $res&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;U&gt;&lt;STRONG&gt;For use with .pfx certificate file:&lt;/STRONG&gt;&lt;/U&gt;
&lt;P&gt;&lt;EM&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12&lt;BR /&gt;$URI = "&lt;STRONG&gt;CCP API request&lt;/STRONG&gt;"&lt;BR /&gt;$certPath = "&lt;STRONG&gt;Absolute path of .pfx file&lt;/STRONG&gt;"&lt;BR /&gt;$cert = Get-PfxCertificate -FilePath $certPath&lt;BR /&gt;$res = (Invoke-RestMethod -Method Get -Uri $URI -Certificate $cert)&lt;BR /&gt;echo $res&lt;/EM&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;For use with a certificate in the Windows Certificate Store:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;See attached Powershell script file.</description>
    <pubDate>Tue, 21 Oct 2025 05:01:41 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-10-21T05:01:41Z</dc:date>
    <item>
      <title>CCP - Client Certificate Authentication - Example Script</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-client-certificate-authentication-example-script/ta-p/1428840</link>
      <description>The below PowerShell scripts shows examples of how the CCP can be called using a client certificate for authentication.&lt;BR /&gt;&lt;BR /&gt;These scripts are provided on &lt;STRONG&gt;example basis only&lt;/STRONG&gt;, and assume SSL verification is successful between the client and the CCP server.&lt;BR /&gt;&amp;nbsp;
&lt;P&gt;&lt;U&gt;CCP API Request example (this is the format expected in the first two scripts below):&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;https://ccp.cybr.com/AIMWebService/api/Accounts?appid=sampleapp&amp;amp;safe=demosafe&amp;amp;address=1.1.1.1&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;For use with .cer certificate file:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12&lt;BR /&gt;$URI = "&lt;STRONG&gt;CCP API request&lt;/STRONG&gt;"&lt;BR /&gt;$cert = "&lt;STRONG&gt;Absolute path of .cer file&lt;/STRONG&gt;"&lt;BR /&gt;$res = (Invoke-RestMethod -Method Get -Uri $URI -Certificate $cert)&lt;BR /&gt;echo $res&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;U&gt;&lt;STRONG&gt;For use with .pfx certificate file:&lt;/STRONG&gt;&lt;/U&gt;
&lt;P&gt;&lt;EM&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12&lt;BR /&gt;$URI = "&lt;STRONG&gt;CCP API request&lt;/STRONG&gt;"&lt;BR /&gt;$certPath = "&lt;STRONG&gt;Absolute path of .pfx file&lt;/STRONG&gt;"&lt;BR /&gt;$cert = Get-PfxCertificate -FilePath $certPath&lt;BR /&gt;$res = (Invoke-RestMethod -Method Get -Uri $URI -Certificate $cert)&lt;BR /&gt;echo $res&lt;/EM&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;For use with a certificate in the Windows Certificate Store:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;See attached Powershell script file.</description>
      <pubDate>Tue, 21 Oct 2025 05:01:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management-articles/ccp-client-certificate-authentication-example-script/ta-p/1428840</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-10-21T05:01:41Z</dc:date>
    </item>
  </channel>
</rss>

