<?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: Export CSR via SSH in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/170459#M54044</link>
    <description>&lt;P&gt;Experienced this error message in the web console:&lt;/P&gt;&lt;P&gt;Failed to prepare certificate &amp;lt;certificate-name&amp;gt; for export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resolved by re-login to the web console..&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 08:23:59 GMT</pubDate>
    <dc:creator>Trond.Olsen</dc:creator>
    <dc:date>2017-08-08T08:23:59Z</dc:date>
    <item>
      <title>Export CSR via SSH</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/74299#M41654</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a CSR:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;request certificate generate country-code DE days-till-expiry 1100 email NOC@DOMAIN.COM locality BERLIN&amp;nbsp;signed-by external organization MYORG&amp;nbsp;ip 1.1.1.1 algorithm RSA rsa-nbits 2048 certificate-name testcert&amp;nbsp;name test.domain.de&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Looks fine and I can also see it in the WUI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now I would like to export it via SSH:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;scp export certificate certificate-name testcert&amp;nbsp;format pem include-key no to myuser@10.10.10.10:/cert_test.csr&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but I get&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Server error : Failed to prepare certificate testcert&amp;nbsp;for export&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This works fine for already existing certificates... but not for a CSR...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help appreciated. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:38:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/74299#M41654</guid>
      <dc:creator>OCEDTRA</dc:creator>
      <dc:date>2016-03-07T18:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export CSR via SSH</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/74301#M41655</link>
      <description>&lt;P&gt;I don't see anything you're doing wrong. I tested this myself and ran into the same situation. The UI export runs an XML download operation, so it's not as simple as a UI wrapper for CLI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CSR should probably be exportable via CLI, but clearly it's not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a workaround, you can run:&lt;/P&gt;
&lt;PRE&gt;show config candidate&lt;/PRE&gt;
&lt;P&gt;Then do a / to start a find, and type&amp;nbsp;the name of the CSR (testcert). It will show you the raw CSR that you can copy then you can put it directly onto the target SSH server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd recommend submitting a feature request with your account team as well. It may have been missed as a requirement, or there may have been a reason for not adding that CLI option, but getting it submitted with your account team can go a long way to getting it implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Greg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;edit, replaced "running" with "candidate", in case the CSR hasn't been added to the running config via a commit yet&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:56:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/74301#M41655</guid>
      <dc:creator>gwesson</dc:creator>
      <dc:date>2016-03-07T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export CSR via SSH</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/170459#M54044</link>
      <description>&lt;P&gt;Experienced this error message in the web console:&lt;/P&gt;&lt;P&gt;Failed to prepare certificate &amp;lt;certificate-name&amp;gt; for export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resolved by re-login to the web console..&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:23:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/export-csr-via-ssh/m-p/170459#M54044</guid>
      <dc:creator>Trond.Olsen</dc:creator>
      <dc:date>2017-08-08T08:23:59Z</dc:date>
    </item>
  </channel>
</rss>

