<?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: Generate certificates in templates with cli in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/571475#M2060</link>
    <description>&lt;P&gt;Did you ever find a solution for generating cert requests via the Pano CLI? It sure would be nice not to go through each device on the GUI.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 18:02:25 GMT</pubDate>
    <dc:creator>grimdbd</dc:creator>
    <dc:date>2024-01-02T18:02:25Z</dc:date>
    <item>
      <title>Generate certificates in templates with cli</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460073#M667</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i know that i can generate certificates on the panorama itself with the command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;request certificate generate ca no signed-by myCA digest sha512 days-till-expiry 365 countrycode DE organization "My Org" hostname [ hostname hostname.mydomain ] name hostname.mydomain certificate-name myCert algorithm RSA rsa-nbits 4096&lt;/P&gt;
&lt;H1 style="margin: 0in; font-family: Calibri; font-size: 14.0pt; color: #1e4e79;"&gt;&amp;nbsp;&lt;/H1&gt;
&lt;P&gt;but as this is done in operational mode on the panorama, there is no way to select a template where the certificates should be generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have to change our RootCA and so i have to generate new certificates for all our palos.&lt;/P&gt;
&lt;P&gt;with cli this would be done in seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Panorama" id="Panorama"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 08:35:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460073#M667</guid>
      <dc:creator>JGriessmeier</dc:creator>
      <dc:date>2022-01-21T08:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate certificates in templates with cli</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460106#M669</link>
      <description>&lt;P&gt;Thank you for the post&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/83417"&gt;@JGriessmeier&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a chance to do it from Panorama's GUI, then it can be done easily from Template that is bound to Template Stack of your Firewalls. Below is a sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelK_0-1642758218681.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/38721iF88D19F689808806/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="PavelK_0-1642758218681.png" alt="PavelK_0-1642758218681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding CLI, I had a quick look and this option is available:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set template [template name] config shared certificate "Cert Name"&lt;/STRONG&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under "set template [template name] config shared certificate "Cert Name", there are couple of options to specify details of certificate. Unfortunately, I have never tried to use CLI for this, so I can't provide further guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 09:51:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460106#M669</guid>
      <dc:creator>PavelK</dc:creator>
      <dc:date>2022-01-21T09:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generate certificates in templates with cli</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460111#M670</link>
      <description>&lt;P&gt;Hi Pavel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have access and know how to do it by hand, but doing this for &amp;gt; 25 devices (different dns names in the certificate) is a matter of time.&lt;/P&gt;
&lt;P&gt;generating the config for the cli in an editor and pushing it is way faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i also found the option for "set template" but you have to set the otherwise generated options by hand e.g. private and public key&lt;/P&gt;
&lt;P&gt;so this won't work for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 10:07:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/460111#M670</guid>
      <dc:creator>JGriessmeier</dc:creator>
      <dc:date>2022-01-21T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generate certificates in templates with cli</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/571475#M2060</link>
      <description>&lt;P&gt;Did you ever find a solution for generating cert requests via the Pano CLI? It sure would be nice not to go through each device on the GUI.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:02:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/generate-certificates-in-templates-with-cli/m-p/571475#M2060</guid>
      <dc:creator>grimdbd</dc:creator>
      <dc:date>2024-01-02T18:02:25Z</dc:date>
    </item>
  </channel>
</rss>

