<?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 How to reimport a csr via api in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423917#M94217</link>
    <description>&lt;P&gt;Anyone ever tried to import a csr back into config?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a csr on panorama the other day and then went to generate a certificate. (I did not commit at this time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I came back with the csr response someone had reverted the config so my csr was gone&lt;/P&gt;&lt;P&gt;I now have a config audit entry with some rest API information about the cert car, but can't seem to inject it back into panorama, anyone ever tried this before?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the below, which is probably not right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='MyFirewall']/config/shared/certificate/entry[@name='CertName']/common-name/entry[@name='portal.example.com']/subject/entry[@name='subject=/C=BE/ST=Antwerp/L=Antwerp/O=PANgurus BV/OU=PANgurus BV/CN=portal.example.com']/algorithm/entry[@name='RSA']/csr/entry[@name='-----BEGIN CERTIFICATE REQUEST-----.myCSR.-----END CERTIFICATE REQUEST-----.']&amp;amp;REST_API_TOKEN=xxxx&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 15:57:54 GMT</pubDate>
    <dc:creator>reaper</dc:creator>
    <dc:date>2021-08-02T15:57:54Z</dc:date>
    <item>
      <title>How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423917#M94217</link>
      <description>&lt;P&gt;Anyone ever tried to import a csr back into config?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a csr on panorama the other day and then went to generate a certificate. (I did not commit at this time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I came back with the csr response someone had reverted the config so my csr was gone&lt;/P&gt;&lt;P&gt;I now have a config audit entry with some rest API information about the cert car, but can't seem to inject it back into panorama, anyone ever tried this before?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the below, which is probably not right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='MyFirewall']/config/shared/certificate/entry[@name='CertName']/common-name/entry[@name='portal.example.com']/subject/entry[@name='subject=/C=BE/ST=Antwerp/L=Antwerp/O=PANgurus BV/OU=PANgurus BV/CN=portal.example.com']/algorithm/entry[@name='RSA']/csr/entry[@name='-----BEGIN CERTIFICATE REQUEST-----.myCSR.-----END CERTIFICATE REQUEST-----.']&amp;amp;REST_API_TOKEN=xxxx&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 15:57:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423917#M94217</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2021-08-02T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423966#M94219</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/7608"&gt;@reaper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this situation (generated a csr and when importing the cert, the initial csr was gone). I then started all over snd generated another csr.&lt;/P&gt;&lt;P&gt;Does it need to be the API for this? If not I think the best chances are there if you take the config of the backup/config version and past this into the current running config : P&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:13:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423966#M94219</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2021-08-02T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423975#M94220</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/16592"&gt;@Remo&lt;/a&gt;&amp;nbsp;: because I didn't commit, there is no config to roll back to unfortunately. All that's left of the original csr is the entry in the config log, which is rest API&lt;/P&gt;&lt;P&gt;My next attemp might be to try CLI as this is a little more "user friendly" with error messages, but this is in an organization where CLI is pretty hard to obtain &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:41:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423975#M94220</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2021-08-02T17:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423978#M94221</link>
      <description>&lt;P&gt;Got it about the config. But if you need exactly this csr, then I still would try to enter this directly to the config xml (export config, paste the csr (maybe create another csr prior to that so you have the configstructure where you could replace the csr) and then import the xml again). Right now you have all the required fields but so far only the wrong format to paste it directly.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 17:50:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/423978#M94221</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2021-08-02T17:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/424337#M94249</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Does the CSR get entered into the config.xml file? Perhaps you can grab it from there or put it back into it/&lt;/P&gt;&lt;P&gt;Just thinking out loud.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 21:25:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/424337#M94249</guid>
      <dc:creator>OtakarKlier</dc:creator>
      <dc:date>2021-08-03T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to reimport a csr via api</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/424903#M94308</link>
      <description>&lt;P&gt;If you don't commit, it doesn't get entered into the config file unfortunately&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've since needed to move forward so created a new csr and got the cert reissued&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 17:29:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-reimport-a-csr-via-api/m-p/424903#M94308</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2021-08-05T17:29:30Z</dc:date>
    </item>
  </channel>
</rss>

