<?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 Download full key store from TLS protect cloud: Need sample payload in PowerShell script in Network Security Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/network-security-discussions/download-full-key-store-from-tls-protect-cloud-need-sample/m-p/1421239#M989</link>
    <description>We are not able to process the JavaScript from ServiceNow, which is working well when we execute directly in MID Server.We have tried with a sample PowerShell script from ServiceNowwhich is working as expected so, we have converted the whole function from Java Script toPowerShell script and tried to execute which isnt working as expected. Please find the code below which we tried and let us know if it required any changes.$util = (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/dchest/tweetnacl-js/master/nacl-fast.js') [raw.githubusercontent.com] | Out-Null$key = "sGdZ7v57K6cMAd6gIb7IeJfQDmN561YDtSkMNxnykCU="$passPhrase = "VenafiNous123!"function encrypt($data, $key){ $encodedData = [Text.Encoding]::UTF8.GetBytes($data) $decodedKey = [Convert]::FromBase64String($key) $encryptedData = [nacl.sealedbox]::Create($encodedData, $decodedKey) return [Convert]::ToBase64String($encryptedData)}$encryptedKey = encrypt $passPhrase $keyWrite-Output $encryptedKey.</description>
    <pubDate>Wed, 08 Mar 2023 08:34:53 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2023-03-08T08:34:53Z</dc:date>
    <item>
      <title>Download full key store from TLS protect cloud: Need sample payload in PowerShell script</title>
      <link>https://live.paloaltonetworks.com/t5/network-security-discussions/download-full-key-store-from-tls-protect-cloud-need-sample/m-p/1421239#M989</link>
      <description>We are not able to process the JavaScript from ServiceNow, which is working well when we execute directly in MID Server.We have tried with a sample PowerShell script from ServiceNowwhich is working as expected so, we have converted the whole function from Java Script toPowerShell script and tried to execute which isnt working as expected. Please find the code below which we tried and let us know if it required any changes.$util = (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/dchest/tweetnacl-js/master/nacl-fast.js') [raw.githubusercontent.com] | Out-Null$key = "sGdZ7v57K6cMAd6gIb7IeJfQDmN561YDtSkMNxnykCU="$passPhrase = "VenafiNous123!"function encrypt($data, $key){ $encodedData = [Text.Encoding]::UTF8.GetBytes($data) $decodedKey = [Convert]::FromBase64String($key) $encryptedData = [nacl.sealedbox]::Create($encodedData, $decodedKey) return [Convert]::ToBase64String($encryptedData)}$encryptedKey = encrypt $passPhrase $keyWrite-Output $encryptedKey.</description>
      <pubDate>Wed, 08 Mar 2023 08:34:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/network-security-discussions/download-full-key-store-from-tls-protect-cloud-need-sample/m-p/1421239#M989</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-03-08T08:34:53Z</dc:date>
    </item>
  </channel>
</rss>

