<?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 PGP Decryption Failing - Looking for suggestions in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119151#M4211</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with PGP encryption for the first time and I have having issues decrypting a file using the “Bouncy Castle - PGP Utility” (ver 1.2.0). I am able to encrypt a file using the object but not decrypt it. I get the error “Private key for encrypted message was not found. Ensure the supplied Private Key Filepath contains a compatible private key for this file’s decryption”. Below I will detail the steps I have followed so far.&lt;/P&gt;&lt;P&gt;To create my key pair I am using GPG. I used the command “gpg --full-generate-key” and created an “RSA and RSA” key with no expiry date and 4096 bits long. For the name I selected “RPA” (as this will be used by the team), for the email address I use a shared email address and for the comment I put “TEST”. I was then prompted to input a passphrase (not within the CMD but via a popup from Kleopatra I believe). I saved the password is my password vault and then entered it. Afterword I ran the following command “--export -a "RPA" &amp;gt; "C:\Users\username\AppData\Roaming\gnupg\rpaTEST\rpaPublicTestKey.asc". I navigated to “C:\Users\username\AppData\Roaming\gnupg\private-keys-v1.d” and copied both private “.key” files into “C:\Users\username\AppData\Roaming\gnupg\rpaTEST”. I then created copies of both of them but changing the file extension from “.key” to “.asc”. I also created a text file called “passphrase” and in clear text entered the passphrase I originally put in. I copied the “rapTEST” folder to my Development machine in the documents folder. Now I will head over to what I did in Blue Prism.&lt;/P&gt;&lt;P&gt;I attached a screenshot to show my configuration for the “encrypt” action which works without a problem. I can also decrypt this file on my local desktop which I will show after. When decrypting I get the message “Private key for encrypted message was not found. Ensure the supplied Private Key Filepath contains a compatible private key for this file’s decryption”. I tried using both private keys and each their files types (“.asc” &amp;amp; “.key”). I tried with and without passphrase and nothing works.&lt;/P&gt;&lt;P&gt;Using Kleopatra on my desktop I am able to decrypt the file (that was encrypted in Blue Prism). I have attached screenshots of this process and I also included the audit logged after it was decrypted.&lt;/P&gt;&lt;P&gt;Please let me know what other troubleshooting steps I should follow.&lt;/P&gt;&lt;P&gt;Thank you,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blue Prism Encryption" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40475i16FFB81B4CE02B5C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="bluePrism_pgpEncrypt.png" alt="Blue Prism Encryption" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blue Prism Encryption&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blue Prism Decryption" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40476i8ADE4BCDAE39648E/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="bluePrism_pgpdecrypt1.png" alt="Blue Prism Decryption" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blue Prism Decryption&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kleopatra Steps" style="width: 916px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40474i2AE776F0B3A66EB3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="kleopatra_decryptSteps.png" alt="Kleopatra Steps" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kleopatra Steps&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kleopatra Success" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40473i5A15E536A830C0E3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="kleopatra_decryptSuccess.png" alt="Kleopatra Success" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kleopatra Success&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AUDIT LOG:&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;GnuPG Audit Log Viewer&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;gpg: encrypted with rsa4096 key, ID 72F272752BB4DF1F, created 2025-02-26&lt;BR /&gt;&amp;amp;quot;RPA (TEST) &amp;amp;lt;rpa@email.ca&amp;amp;gt;&amp;amp;quot;&lt;BR /&gt;gpg: used key is not marked for encryption use.&lt;BR /&gt;gpg: WARNING: cipher algorithm CAST5 not found in recipient preferences&lt;BR /&gt;&amp;lt;/pre&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 14:41:34 GMT</pubDate>
    <dc:creator>JamesACA</dc:creator>
    <dc:date>2025-03-03T14:41:34Z</dc:date>
    <item>
      <title>PGP Decryption Failing - Looking for suggestions</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119151#M4211</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with PGP encryption for the first time and I have having issues decrypting a file using the “Bouncy Castle - PGP Utility” (ver 1.2.0). I am able to encrypt a file using the object but not decrypt it. I get the error “Private key for encrypted message was not found. Ensure the supplied Private Key Filepath contains a compatible private key for this file’s decryption”. Below I will detail the steps I have followed so far.&lt;/P&gt;&lt;P&gt;To create my key pair I am using GPG. I used the command “gpg --full-generate-key” and created an “RSA and RSA” key with no expiry date and 4096 bits long. For the name I selected “RPA” (as this will be used by the team), for the email address I use a shared email address and for the comment I put “TEST”. I was then prompted to input a passphrase (not within the CMD but via a popup from Kleopatra I believe). I saved the password is my password vault and then entered it. Afterword I ran the following command “--export -a "RPA" &amp;gt; "C:\Users\username\AppData\Roaming\gnupg\rpaTEST\rpaPublicTestKey.asc". I navigated to “C:\Users\username\AppData\Roaming\gnupg\private-keys-v1.d” and copied both private “.key” files into “C:\Users\username\AppData\Roaming\gnupg\rpaTEST”. I then created copies of both of them but changing the file extension from “.key” to “.asc”. I also created a text file called “passphrase” and in clear text entered the passphrase I originally put in. I copied the “rapTEST” folder to my Development machine in the documents folder. Now I will head over to what I did in Blue Prism.&lt;/P&gt;&lt;P&gt;I attached a screenshot to show my configuration for the “encrypt” action which works without a problem. I can also decrypt this file on my local desktop which I will show after. When decrypting I get the message “Private key for encrypted message was not found. Ensure the supplied Private Key Filepath contains a compatible private key for this file’s decryption”. I tried using both private keys and each their files types (“.asc” &amp;amp; “.key”). I tried with and without passphrase and nothing works.&lt;/P&gt;&lt;P&gt;Using Kleopatra on my desktop I am able to decrypt the file (that was encrypted in Blue Prism). I have attached screenshots of this process and I also included the audit logged after it was decrypted.&lt;/P&gt;&lt;P&gt;Please let me know what other troubleshooting steps I should follow.&lt;/P&gt;&lt;P&gt;Thank you,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blue Prism Encryption" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40475i16FFB81B4CE02B5C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="bluePrism_pgpEncrypt.png" alt="Blue Prism Encryption" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blue Prism Encryption&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blue Prism Decryption" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40476i8ADE4BCDAE39648E/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="bluePrism_pgpdecrypt1.png" alt="Blue Prism Decryption" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Blue Prism Decryption&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kleopatra Steps" style="width: 916px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40474i2AE776F0B3A66EB3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="kleopatra_decryptSteps.png" alt="Kleopatra Steps" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kleopatra Steps&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kleopatra Success" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40473i5A15E536A830C0E3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="kleopatra_decryptSuccess.png" alt="Kleopatra Success" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kleopatra Success&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AUDIT LOG:&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;GnuPG Audit Log Viewer&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;gpg: encrypted with rsa4096 key, ID 72F272752BB4DF1F, created 2025-02-26&lt;BR /&gt;&amp;amp;quot;RPA (TEST) &amp;amp;lt;rpa@email.ca&amp;amp;gt;&amp;amp;quot;&lt;BR /&gt;gpg: used key is not marked for encryption use.&lt;BR /&gt;gpg: WARNING: cipher algorithm CAST5 not found in recipient preferences&lt;BR /&gt;&amp;lt;/pre&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:41:34 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119151#M4211</guid>
      <dc:creator>JamesACA</dc:creator>
      <dc:date>2025-03-03T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Decryption Failing - Looking for suggestions</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119178#M4214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/44915"&gt;@JamesACA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for being a SS&amp;amp;C Blue Prism customer, and for using Blue Prism. I am sorry to see you are having issue with this asset.&lt;/P&gt;&lt;P&gt;As a first, very quick review, the reported issue seems to be suggesting a problem with the filepath. Given your key works using Kleopatra, I am assuming from your images that the key is simply pasted in here and not accessed by the file system.&lt;/P&gt;&lt;P&gt;So, my initial thoughts are, that this asset is written in C#. As such, filepaths SEEM to work better when the '\' (backslash) character is doubled-up, to avoid it being interpreted as an escape sequence. So, first up could I ask that you try this, double up every backslash in your file path, and see if that resolves the issue.&lt;/P&gt;&lt;P&gt;The next one is a bit of a straw clutch. Path length. I am not sure what the maximum path length might be for you. Some of those paths do look long, but do they breach the rules? Perhaps trying with a shorter path length. This is of course a straw clutch at this time, and my faith lies in my first recommendation.&lt;/P&gt;&lt;P&gt;Do come back to us here, if you are unable to resolve your issue and we will take a deeper look.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 10:17:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119178#M4214</guid>
      <dc:creator>GeoffHirst</dc:creator>
      <dc:date>2025-03-04T10:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: PGP Decryption Failing - Looking for suggestions</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119185#M4215</link>
      <description>&lt;P&gt;Hello Geoff,&lt;/P&gt;&lt;P&gt;Thank you for your response. I followed your suggestions, and they did not work; however, this comment, "&lt;SPAN&gt;Given your key works using Kleopatra, I am assuming from your images that the key is simply pasted in here and not accessed by the file system" was wrong as it was by the file system. I attempted to import the key, and it did not work. This made me restart my troubleshooting. I created a new key using "gpg --export-secret-keys -a "your-email@example.com" &amp;gt; private-key.asc" and this one worked. Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:21:21 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/PGP-Decryption-Failing-Looking-for-suggestions/m-p/119185#M4215</guid>
      <dc:creator>JamesACA</dc:creator>
      <dc:date>2025-03-04T15:21:21Z</dc:date>
    </item>
  </channel>
</rss>

