<?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: Add a certificate to local user via Management API Web Services in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222898#M8652</link>
    <description>&lt;P&gt;Hey Lesley,&lt;/P&gt;&lt;P&gt;thank you for your answer.&amp;nbsp;&lt;BR /&gt;Via Smart Console CLI and mgmt_cli i can add a&amp;nbsp;&lt;SPAN&gt;registration-key to a user&lt;BR /&gt;&lt;BR /&gt;"set user name &amp;lt;Username&amp;gt; certificates.add.registration-key.expiration-days 14" works and a simular command on mgmt_cli also works.&amp;nbsp;&lt;BR /&gt;But via Web services I get the error, and I would like to use web services. Maybe my syntax is wrong, but thats what i have seen everywhere.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 07:32:27 GMT</pubDate>
    <dc:creator>Res</dc:creator>
    <dc:date>2024-08-07T07:32:27Z</dc:date>
    <item>
      <title>Add a certificate to local user via Management API Web Services</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222851#M8648</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to add a certificate (&lt;SPAN class=""&gt;registration key&lt;/SPAN&gt;) to a user via the management api.&lt;/P&gt;&lt;P&gt;But everytime i get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my request body&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
 "certificates" :  {
       "add" : {
           "registration-key":{}
       }
   },
 "uid" : "&amp;lt;removed&amp;gt;",
 "details-level" : "full"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a response i get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"code": "generic_error",
	"message": ""
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do a add a certificate to a local checkpoint user?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:57:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222851#M8648</guid>
      <dc:creator>Res</dc:creator>
      <dc:date>2024-08-06T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add a certificate to local user via Management API Web Services</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222883#M8649</link>
      <description>&lt;P&gt;Check this out:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-user-a-certificate-via-API/m-p/102181/highlight/true#M5323" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-user-a-certificate-via-API/m-p/102181/highlight/true#M5323&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I assume you also seen api ref guide?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-user~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-user~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Maybe the order is wrong first create cert and then reg key?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 20:30:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222883#M8649</guid>
      <dc:creator>Lesley</dc:creator>
      <dc:date>2024-08-06T20:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add a certificate to local user via Management API Web Services</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222898#M8652</link>
      <description>&lt;P&gt;Hey Lesley,&lt;/P&gt;&lt;P&gt;thank you for your answer.&amp;nbsp;&lt;BR /&gt;Via Smart Console CLI and mgmt_cli i can add a&amp;nbsp;&lt;SPAN&gt;registration-key to a user&lt;BR /&gt;&lt;BR /&gt;"set user name &amp;lt;Username&amp;gt; certificates.add.registration-key.expiration-days 14" works and a simular command on mgmt_cli also works.&amp;nbsp;&lt;BR /&gt;But via Web services I get the error, and I would like to use web services. Maybe my syntax is wrong, but thats what i have seen everywhere.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 07:32:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-a-certificate-to-local-user-via-Management-API-Web-Services/m-p/222898#M8652</guid>
      <dc:creator>Res</dc:creator>
      <dc:date>2024-08-07T07:32:27Z</dc:date>
    </item>
  </channel>
</rss>

