<?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 Migrate HTTPS inspection policy with ExportImportPolicyPackage in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Migrate-HTTPS-inspection-policy-with-ExportImportPolicyPackage/m-p/154080#M7018</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created a lab to test this script. I've two MGMT R80.40 with a FW and a policy for each. I have the access, threat prevention and https inspection layer in each policy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;During my tests the export part is OK but not the import part.&lt;/P&gt;&lt;P&gt;The export part:&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting HTTPS layers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting HTTPS Layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Retrieved 2 out of 2 rules (100%)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Processing https rules and sections&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https rules from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https sections from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https placeholders for unexportable objects from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https layer settings of layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Done exporting https layer 'Https_Isnpection_source'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I've check the tgz file and everything seems OK. I've a csv file to describe the layer and a tgz file with the rules.&lt;/P&gt;&lt;P class="lia-align-left"&gt;During the export there is a first problem, the import script log say that the SSL layer is a shared one but it's not:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Adding https-layers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-layer with name [Https_Isnpection_source]. Error: code: generic_err_invalid_parameter_name&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Unrecognized parameter [shared]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ssl layer.png" style="width: 237px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/17337i97F08DF64DF34802/image-dimensions/237x199?v=v2" width="237" height="199" role="button" title="ssl layer.png" alt="ssl layer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;at the end of the log another&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Importing Https_Layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;The version of the imported package doesn't exist in this machine! import with this machines latest version.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Adding https-rules&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-rule. Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found -------&amp;gt; first rule of the layer without a name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-rule with name [dede]. Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found-------&amp;gt; second rule of the layer with a name (dede)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to attach layers to package! Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;. Import operation aborted.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does anyone have already export and import policy with SSL inspection rule? Does someone has a tip to do the work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BBJ&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 12:30:47 GMT</pubDate>
    <dc:creator>bebertjack</dc:creator>
    <dc:date>2022-07-28T12:30:47Z</dc:date>
    <item>
      <title>Migrate HTTPS inspection policy with ExportImportPolicyPackage</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Migrate-HTTPS-inspection-policy-with-ExportImportPolicyPackage/m-p/154080#M7018</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created a lab to test this script. I've two MGMT R80.40 with a FW and a policy for each. I have the access, threat prevention and https inspection layer in each policy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;During my tests the export part is OK but not the import part.&lt;/P&gt;&lt;P&gt;The export part:&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting HTTPS layers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting HTTPS Layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Retrieved 2 out of 2 rules (100%)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Processing https rules and sections&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https rules from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https sections from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https placeholders for unexportable objects from layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Exporting https layer settings of layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Done exporting https layer 'Https_Isnpection_source'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I've check the tgz file and everything seems OK. I've a csv file to describe the layer and a tgz file with the rules.&lt;/P&gt;&lt;P class="lia-align-left"&gt;During the export there is a first problem, the import script log say that the SSL layer is a shared one but it's not:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Adding https-layers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-layer with name [Https_Isnpection_source]. Error: code: generic_err_invalid_parameter_name&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Unrecognized parameter [shared]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ssl layer.png" style="width: 237px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/17337i97F08DF64DF34802/image-dimensions/237x199?v=v2" width="237" height="199" role="button" title="ssl layer.png" alt="ssl layer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;at the end of the log another&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Importing Https_Layer [Https_Isnpection_source]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;The version of the imported package doesn't exist in this machine! import with this machines latest version.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Adding https-rules&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-rule. Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found -------&amp;gt; first rule of the layer without a name&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to import https-rule with name [dede]. Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found-------&amp;gt; second rule of the layer with a name (dede)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Failed to attach layers to package! Error: code: generic_err_object_not_found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;message: Requested object [Https_Isnpection_source] not found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;. Import operation aborted.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does anyone have already export and import policy with SSL inspection rule? Does someone has a tip to do the work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BBJ&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 12:30:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Migrate-HTTPS-inspection-policy-with-ExportImportPolicyPackage/m-p/154080#M7018</guid>
      <dc:creator>bebertjack</dc:creator>
      <dc:date>2022-07-28T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate HTTPS inspection policy with ExportImportPolicyPackage</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Migrate-HTTPS-inspection-policy-with-ExportImportPolicyPackage/m-p/154266#M7025</link>
      <description>&lt;P&gt;Please ensure you are using the most recent GA JHF.&lt;BR /&gt;It looks like the underlying issue was resolved in Take 83 of the JHF for R80.40:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/R80.40-List-of-all-Resolved-Issues.htm?tocpath=_____3" target="_blank"&gt;https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/R80.40-List-of-all-Resolved-Issues.htm?tocpath=_____3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE id="filter1Table" class="TableStyle-TP_Table_Jumbo_Fixes" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR class="TableStyle-TP_Table_Jumbo_Fixes-Body-Release_Date" data-mc-pattern="8"&gt;
&lt;TD colspan="3" class="TableStyle-TP_Table_Jumbo_Fixes-BodyD-Column_Style_ID-Release_Date"&gt;
&lt;P&gt;&lt;STRONG&gt;Take 83&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Released on 04 October 2020 and moved to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_Other.tp_General_Availability variable"&gt;General Availability&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on 25 October 2020&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="TableStyle-TP_Table_Jumbo_Fixes-Body-Grey_Background"&gt;
&lt;TD class="TableStyle-TP_Table_Jumbo_Fixes-BodyE-Column_Style_ID-Grey_Background"&gt;
&lt;P&gt;PRJ-16342,&lt;BR /&gt;PMTR-58390&lt;/P&gt;
&lt;/TD&gt;
&lt;TD class="TableStyle-TP_Table_Jumbo_Fixes-BodyE-Column_Style_Product-Grey_Background"&gt;
&lt;P&gt;SmartConsole&lt;/P&gt;
&lt;/TD&gt;
&lt;TD class="TableStyle-TP_Table_Jumbo_Fixes-BodyD-Column_Style_Description-Grey_Background"&gt;
&lt;P&gt;Setting or creating HTTPS layer (&lt;EM&gt;add-https-layer&lt;/EM&gt;) with the "&lt;EM&gt;shared&lt;/EM&gt;" parameter using the API may fail with the "&lt;EM&gt;Unrecognized parameter [shared]&lt;/EM&gt;" error.&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 12:33:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Migrate-HTTPS-inspection-policy-with-ExportImportPolicyPackage/m-p/154266#M7025</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-08-01T12:33:07Z</dc:date>
    </item>
  </channel>
</rss>

