<?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>topic Re: adaptable application functions in Network Security Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420180#M735</link>
    <description>Thanks for the info @Greg.Brownstein but Im unable to get the Extract-Function block to run, I added some logging to this function and it never runs, unless it doesnt have to run on the same engine that is assigned to the workflow of the folder.</description>
    <pubDate>Thu, 12 Oct 2023 11:08:49 GMT</pubDate>
    <dc:creator>Chris_Blackburn</dc:creator>
    <dc:date>2023-10-12T11:08:49Z</dc:date>
    <item>
      <title>adaptable application functions</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420178#M733</link>
      <description>Im unable to get any code to run from an adaptable application in the Exract-Certificate function, does anyone know at what stage or how this function is called in an adaptable app?I opened a support case with Venafi and they suggested me ask the community.</description>
      <pubDate>Tue, 10 Oct 2023 18:32:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420178#M733</guid>
      <dc:creator>Chris_Blackburn</dc:creator>
      <dc:date>2023-10-10T18:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: adaptable application functions</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420179#M734</link>
      <description>&lt;P&gt;Hi Chris. Here is some info on Extract-Certificate. From the "Extract-Certificate function" documentation: https://docs.venafi.com/Docs/current/TopNav/Content/Drivers/r-drivers-AdaptableApp-function-ExtractCertificate.php.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; Use the Extract-Certificate function to retrieve the certificate from the target device so that it can be validated and extracted to update the certificate in Trust Protection Platform. This function is called after a certificate has been successfully provisioned and whenever a user requests the certificate and private key to be extracted from the device. This function is required because it provides an important method for Trust Protection Platform to verify that the certificate is properly installed on the device. The function may return the raw X509 certificate or the serial number and SHA1 thumbprint for the purposes of Validation but it must return the raw X509 certificate to support Extraction.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 18:32:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420179#M734</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-10-10T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: adaptable application functions</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420180#M735</link>
      <description>Thanks for the info @Greg.Brownstein but Im unable to get the Extract-Function block to run, I added some logging to this function and it never runs, unless it doesnt have to run on the same engine that is assigned to the workflow of the folder.</description>
      <pubDate>Thu, 12 Oct 2023 11:08:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420180#M735</guid>
      <dc:creator>Chris_Blackburn</dc:creator>
      <dc:date>2023-10-12T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: adaptable application functions</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420181#M736</link>
      <description>@Chris.Blackburn , Id recommend the following best practices when troubleshootingadaptable apps: Make sure that you write the code outside of Venafi first to make sure that the code works. If its API calls, test them first, then write the code before you transfer to the Adaptable framework. For routineswhere you need to troubleshoot a response, wrapwith a try/catch block so you can send the response back to the Venafi status on the object you are provisioning. In the catch block, you can throw something like Throw Error: $($_.Exception.Message). The throw statement will trap the error and send it back to the console. Venafi does have an enable logging feature which will log to the default location specified by the $DEBUG_FILE variable (according to the docs). If you cant get that to work, you can always start a PowerShell transcript so you can catch where in the code. Something like: Start-Transcript -Path should work and will log your session. If you are just trying to see the values of the variables that are injecting into the PowerShell functions, you can always send the results of the hash tables General and Specific. Ive found something like $General.GetEnumerator() | Out-File -FilePath does the trick. Remember, the output will write to the file path on the TPP server where you are running the Adaptable App script from. Hope that helps!</description>
      <pubDate>Wed, 25 Oct 2023 17:24:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420181#M736</guid>
      <dc:creator>daniel.schiada</dc:creator>
      <dc:date>2023-10-25T17:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: adaptable application functions</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420182#M737</link>
      <description>Thanks for the replys, support came back to me and advised that in order for the Extract-Certificate function to run file validation has to be enabled on the application.</description>
      <pubDate>Fri, 27 Oct 2023 12:08:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/adaptable-application-functions/m-p/1420182#M737</guid>
      <dc:creator>Chris_Blackburn</dc:creator>
      <dc:date>2023-10-27T12:08:02Z</dc:date>
    </item>
  </channel>
</rss>

