<?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: API-Key in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210180#M8444</link>
    <description>&lt;P&gt;I was actually more suspicious of the terminating equals signs from the base64 padding. BASH sometimes does weird things with the equals sign.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 14:09:44 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2024-04-01T14:09:44Z</dc:date>
    <item>
      <title>API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210009#M8426</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Following this guide:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api1.JPG" style="width: 660px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25079i06516E9BA0727616/image-size/large?v=v2&amp;amp;px=999" role="button" title="api1.JPG" alt="api1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api2.JPG" style="width: 594px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25080iC47869FBA073A1E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="api2.JPG" alt="api2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;at step 3 i get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api3.JPG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25081i040D88D9D43150F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="api3.JPG" alt="api3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A-GUI is a windows computer that tries to connect to SMS and 10.1.1.201 is its IP.&lt;/P&gt;&lt;P&gt;What do I miss here? Why i get "failed to parse...." every time I try?!&lt;/P&gt;&lt;P&gt;and as you can see the content of token.txt "login failed" What password should be used here? I use the admin password?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then when that successes how would you use API-key to send commands from a CMD command line?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:23:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210009#M8426</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-03-29T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210098#M8428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Looks like the syntax is correct. What version/JHF are you using?&lt;/P&gt;
&lt;P&gt;I would try a few steps:&lt;/P&gt;
&lt;P&gt;a. Check API status ("api status" in expert)&lt;/P&gt;
&lt;P&gt;b. Try to login first without writing the answer to the file. See if it works. Seemingly, it doesn't recognize your API key for a reason.&lt;/P&gt;
&lt;P&gt;c. If issue to login continues, try to re-generate the key.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 10:08:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210098#M8428</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2024-03-31T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210103#M8429</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api4.JPG" style="width: 810px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25098i31EF91C92C0F515B/image-size/large?v=v2&amp;amp;px=999" role="button" title="api4.JPG" alt="api4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When trying only to login:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api5.JPG" style="width: 940px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25099i6B423878330112AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="api5.JPG" alt="api5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did regenerate the key many times and used many different places to save it, but still getting the same error!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 10:41:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210103#M8429</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-03-31T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210109#M8430</link>
      <description>&lt;P&gt;Note the example screenshot has a Read-Only profile, you won't be able to make modifications with that.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 11:30:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210109#M8430</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2024-03-31T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210112#M8431</link>
      <description>&lt;P&gt;I meant try to login using API-key.&lt;/P&gt;
&lt;P&gt;In general, since this doesn't work I would try to re-generate (as you did) the key, try to create a different admin perhaps and make sure that it's well defined in SmartConsole (permission profile for example. As &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10384"&gt;@Alex-&lt;/a&gt;&amp;nbsp; mentioned, profile should have write permissions).&lt;/P&gt;
&lt;P&gt;If this still doesn't work, perhaps open a ticket for support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 12:03:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210112#M8431</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2024-03-31T12:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210115#M8432</link>
      <description>&lt;P&gt;Try enclosing the API key in double quotes, thinking perhaps it is not liking that forward slash.&lt;/P&gt;
&lt;P&gt;Failing that, look in $FWDIR/log/api.elg on the SMS to see how your login command is coming through the API Server for parsing.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 13:48:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210115#M8432</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2024-03-31T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210119#M8433</link>
      <description>&lt;P&gt;I don't think that's likely to be the problem directly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# echo mC4B/RZaG0NCn4aAaKWUqw== | xargs -n 1 echo 
mC4B/RZaG0NCn4aAaKWUqw==
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't get carved up into separate, smaller chunks, and no characters get substituted or trimmed. Still worth a shot, since it's easy to do, I just think the problem is elsewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The directions only say to publish the SmartConsole session, but changes to administrators typically need an Install Database to take effect. Probably also worth a shot.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 17:39:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210119#M8433</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-03-31T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210151#M8434</link>
      <description>&lt;P&gt;that image is coming from the admin guide. The reality is Super-user profile&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 07:40:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210151#M8434</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-04-01T07:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210153#M8435</link>
      <description>&lt;P&gt;When checking $FWDIR/log/api.elg like this: cat $FWDIR/log/api.elg | more&lt;/P&gt;&lt;P&gt;I can only see log from 22/March, I don't know why new logs do not show up!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api6.JPG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25119i9B4EC49BF1B1347F/image-size/large?v=v2&amp;amp;px=999" role="button" title="api6.JPG" alt="api6.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 07:44:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210153#M8435</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-04-01T07:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210156#M8437</link>
      <description>&lt;P&gt;Testing now and it is working as described in the admin guide!&lt;/P&gt;&lt;P&gt;I did not do anything, it just worked!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api7.JPG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/25120i59A162DC012658A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="api7.JPG" alt="api7.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 08:00:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210156#M8437</guid>
      <dc:creator>Moudar</dc:creator>
      <dc:date>2024-04-01T08:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210173#M8441</link>
      <description>&lt;P&gt;Right I knew that other than its use as a path separator, "/" is not significant to the shell as a special character.&amp;nbsp; Just was wondering if it was tripping up the parsing somehow in the API server which api.elg can be quite helpful for diagnosing.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:30:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210173#M8441</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2024-04-01T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: API-Key</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210180#M8444</link>
      <description>&lt;P&gt;I was actually more suspicious of the terminating equals signs from the base64 padding. BASH sometimes does weird things with the equals sign.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:09:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Key/m-p/210180#M8444</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-04-01T14:09:44Z</dc:date>
    </item>
  </channel>
</rss>

