<?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: uploading SSH keys via REST API (format issues) in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333420#M29693</link>
    <description>&lt;P&gt;for anyone who is interested:&lt;/P&gt;&lt;P&gt; $bodysecret = Get-Content&amp;nbsp;$templatefile.secret&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$bodysecret=$bodysecret | out-string&lt;/P&gt;&lt;P&gt;is working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 15:17:42 GMT</pubDate>
    <dc:creator>sh</dc:creator>
    <dc:date>2021-02-05T15:17:42Z</dc:date>
    <item>
      <title>uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333417#M29690</link>
      <description>&lt;P&gt;I'm trying to upload SSH keys vie REST API, but I don't know how to "build" the secret.&lt;/P&gt;&lt;P&gt;I have a working private key in a typical format:&lt;/P&gt;&lt;P&gt;-----BEGIN OPENSSH PRIVATE KEY-----&lt;/P&gt;&lt;P&gt;AAAAA&lt;/P&gt;&lt;P&gt;BBBB&lt;/P&gt;&lt;P&gt;CCCC&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;-----END OPENSSH PRIVATE KEY-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can't be uploaded. In following format "-----BEGIN OPENSSH PRIVATE KEY----- AAAAA BBBB CCCC .....-----END OPENSSH PRIVATE KEY-----" it can be uploaded, but CyberArk is not "understanding" that format anymore&lt;/P&gt;&lt;P&gt;CACPM690E Error occurred during SSH key rotate operation. Error: CACPM688E PuttyGen execution failed. Reason: puttygen: error loading `.\tmp\keygen_in-KEY_MGR_DSS_AIX-TestSafe3-Root-test_stefanaixdsa-02-01-21 14-01-42.tmp': unrecognised key type&lt;/P&gt;&lt;P&gt;When I upload the key in PVWA, i get the information: "Leading/trailing white space character(s) were identified in the password, these characters will be automatically removed." a simple TRIM function is not helping. I asssume that I have to handle the line brakes in the string somehow. Does someone have experience with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 13:42:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333417#M29690</guid>
      <dc:creator>sh</dc:creator>
      <dc:date>2021-02-01T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333418#M29691</link>
      <description>&lt;P&gt;CyberArk currently only understands SSH keys in PEM format. You are uploading a key in OpenSSH format. Convert it (or just recreate it using "ssh-keygen -m pem ....") and try again.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 14:54:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333418#M29691</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-02-01T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333419#M29692</link>
      <description>&lt;P&gt;thanks for your input. I have exactly the same behavior with the pem format.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:45:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333419#M29692</guid>
      <dc:creator>sh</dc:creator>
      <dc:date>2021-02-02T08:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333420#M29693</link>
      <description>&lt;P&gt;for anyone who is interested:&lt;/P&gt;&lt;P&gt; $bodysecret = Get-Content&amp;nbsp;$templatefile.secret&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$bodysecret=$bodysecret | out-string&lt;/P&gt;&lt;P&gt;is working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:17:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333420#M29693</guid>
      <dc:creator>sh</dc:creator>
      <dc:date>2021-02-05T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333421#M29694</link>
      <description>&lt;P&gt;Hi @St H​&amp;nbsp; I have the exact same problem I dont quite understand how you managed to solve it&lt;/P&gt;&lt;P&gt;"for anyone who is interested:&lt;/P&gt;&lt;P&gt;$bodysecret = Get-Content&amp;nbsp;$templatefile.secret&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$bodysecret=$bodysecret | out-string&lt;/P&gt;&lt;P&gt;is working for me."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you mean by that?&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 14:41:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333421#M29694</guid>
      <dc:creator>T.Sfetsios100581</dc:creator>
      <dc:date>2023-01-31T14:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: uploading SSH keys via REST API (format issues)</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333422#M29695</link>
      <description>&lt;P&gt;Hi, already 2 years ago &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my opinion the issue is the format of the secret. I had a csv file with a list of SSH keys accounts (imported to $templatefile). &lt;/P&gt;&lt;P&gt;1) I extracted the value for the key listed in column secret &lt;/P&gt;&lt;P&gt;2) I used the&lt;B&gt;&amp;nbsp;Out-String&lt;/B&gt;&amp;nbsp;cmdlet to convert the input object into strings&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 22:39:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/uploading-ssh-keys-via-rest-api-format-issues/m-p/1333422#M29695</guid>
      <dc:creator>sh</dc:creator>
      <dc:date>2023-01-31T22:39:46Z</dc:date>
    </item>
  </channel>
</rss>

