<?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: Certificate issues with PDF Server in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16583#M249</link>
    <description>&lt;P&gt;It turns out, the exception doesn't have to be created by splunk's Firefox. You can make the exception on a Firefox on your local machine, find the cert_override.txt, and drop it in.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2010 05:06:50 GMT</pubDate>
    <dc:creator>vbumgarner</dc:creator>
    <dc:date>2010-10-22T05:06:50Z</dc:date>
    <item>
      <title>Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16579#M245</link>
      <description>&lt;P&gt;I've recently installed the pdfserver application and am having issues getting it to generate PDF documents.  When I click on the status page (manager -&amp;gt; system settings -&amp;gt; email alert settings), the image that appears in the blue box (PDF container) displays a firefox certificate warning.  &lt;/P&gt;

&lt;P&gt;I have started both the splunk version of firefox and the default redhat version of firefox on the server running splunk pdfserver, connected to the same URL (both port 8000 and 8089), and accepted the certificates permanently.  Where do I need to accept/import the CA certificate so I can begin generating PDF reports?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 23:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16579#M245</guid>
      <dc:creator>jts</dc:creator>
      <dc:date>2010-06-30T23:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16580#M246</link>
      <description>&lt;P&gt;That's weird.  It looks like there is code in &lt;CODE&gt;pdfhandler.py&lt;/CODE&gt; (notably the function &lt;CODE&gt;add_cert_exception&lt;/CODE&gt;) to handle certificate overrides, and it seems like it's called whenever a profile is created...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2010 00:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16580#M246</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-07-01T00:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16581#M247</link>
      <description>&lt;P&gt;It appears to me (with some debugging) that the certificate override is never called, because the underlying HTTP request object never returns a certificate. It seems to me that as of Splunk version 4.1.3, running PDF server in an SSL-enabled SplunkWeb simply doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2010 21:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16581#M247</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-09T21:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16582#M248</link>
      <description>&lt;P&gt;Thank you.  That worked!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 01:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16582#M248</guid>
      <dc:creator>jts</dc:creator>
      <dc:date>2010-08-25T01:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16583#M249</link>
      <description>&lt;P&gt;It turns out, the exception doesn't have to be created by splunk's Firefox. You can make the exception on a Firefox on your local machine, find the cert_override.txt, and drop it in.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 05:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16583#M249</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2010-10-22T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16584#M250</link>
      <description>&lt;P&gt;For new arrivals: with current Splunk (4.1.8/4.2+) with pdfserver ad acquired live from splunkbase, it is at least working for a variety of test cases.  I think we're now at the point where we should ensure the current version is in use and then resort to tech support.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2011 17:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16584#M250</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2011-04-18T17:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16585#M251</link>
      <description>&lt;P&gt;Hi, Experiencing this problem even though I have installed a correct cert_override.txt in the correct directory. testing works fine, yes I have the latest version. only fails and emails me a PDF with the Firefox 'this connection is untrusted' in it, when firing from an alert. Do it by hand, all ok. doing 'ps -ef|grep splunk' reveals correct https url in the params being passed to Firefox e.g. ...x86_64/firefox-bin -print &lt;A href="https://NSW-JB-SPLUNK2:443/app/search/@go?sid=scheduler__admin__search_dGVzdCA0NTY_at_1312864440_f88fda574f3b4f78&amp;amp;media=print" target="_blank"&gt;https://NSW-JB-SPLUNK2:443/app/search/@go?sid=scheduler__admin__search_dGVzdCA0NTY_at_1312864440_f88fda574f3b4f78&amp;amp;media=print&lt;/A&gt; -printmode pdf ...  ANY help appreciated, cheers.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16585#M251</guid>
      <dc:creator>hotsplunk</dc:creator>
      <dc:date>2020-09-28T09:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16586#M252</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Same situation here, I've copied cert_override.txt to the default profile directory, the test pdf generates right, but the dashboard pdf preview contains an untrusted warning only.&lt;BR /&gt;&lt;BR /&gt;
This is the python.log during the dashboard pdf preview: &lt;/P&gt;

&lt;P&gt;2012-08-22 18:12:31,222 INFO Starting PDF App Renderer Version 1.3&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,235 WARNING pdfhandler:458 - body=Splunk;4.3.2;4.3.2&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,235 WARNING body=Splunk;4.3.2;4.3.2&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,235 WARNING pdfhandler:459 - entries=['Splunk', '4.3.2', '4.3.2']&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,235 WARNING entries=['Splunk', '4.3.2', '4.3.2']&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,240 INFO    xvfb:45 - Started new X server. Now 1 active&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,240 INFO Started new X server. Now 1 active&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO    xvfb:205 - Assigned DISPLAY :5&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO Assigned DISPLAY :5&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO    xvfb:115 - Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO    xvfb:116 - Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:31,245 INFO Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,249 INFO    xvfb:122 - X Started&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,249 INFO X Started&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,302 WARNING pdfhandler:419 - &lt;STRONG&gt;Created profile /tmp/tmp43TJBV/.mozilla/firefox/1ngh5dvf.splunk&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;
2012-08-22 18:12:33,302 WARNING Created profile /tmp/tmp43TJBV/.mozilla/firefox/1ngh5dvf.splunk&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,308 WARNING pdfhandler:551 - Restricting Firefox to following hosts only: *:53 10.10.5.181&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,308 WARNING Restricting Firefox to following hosts only: *:53 10.10.5.181&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,308 INFO    pdfhandler:558 - Executing /opt/splunk/etc/apps/pdfserver/bin/firefox-x86_64/firefox -print https://(path-to-view) -printmode pdf -printfile /tmp/tmpYJShzA -title Splunk Report -orientation portrait -paperwidth 219 -paperheight 297 -mode splunk -timeout 180 -windowsize 793x768 -footer_right Generated by Splunk at &amp;amp;D -cookie session_id_None=c758a3880a6fa6ab0b413eb324fd62f74db3b16b -P splunk&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:12:33,308 INFO Executing /opt/splunk/etc/apps/pdfserver/bin/firefox-x86_64/firefox -print https://(path-to-view) -printmode pdf -printfile /tmp/tmpYJShzA -title Splunk Report -orientation portrait -paperwidth 219 -paperheight 297 -mode splunk -timeout 180 -windowsize 793x768 -footer_right Generated by Splunk at &amp;amp;D -cookie session_id_None=c758a3880a6fa6ab0b413eb324fd62f74db3b16b -P splunk&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,450 INFO    pdfhandler:628 - Generated pdf file.  bytes=31423 time=181.14&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,450 INFO Generated pdf file.  bytes=31423 time=181.14&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,453 WARNING pdfhandler:749 - Firefox timed out while waiting for the report to be rendered - Incomplete snapshot generated&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,453 WARNING Firefox timed out while waiting for the report to be rendered - Incomplete snapshot generated&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,454 WARNING xvfb:132 - Stopping X Server 5&lt;BR /&gt;&lt;BR /&gt;
2012-08-22 18:15:34,454 WARNING Stopping X Server 5&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
In my view the problem is that Firefox creates a profile in the temporary directory (/tmp/tmp43TJBV) instead of splunk user's home, and does nothing with default profile preferencies. There is a cert_override.txt file in this temporary profile, but it has incorrect content and has nothing to do with the default one, therefore gives the browser this cert warning. &lt;BR /&gt;&lt;BR /&gt;
I've searched a lot for the solution related to my problem, but this is the only ticket without an answer &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
Any help would be appreciated! Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Versions: &lt;BR /&gt;&lt;BR /&gt;
splunk: 4.3.2, build 123586 &lt;BR /&gt;&lt;BR /&gt;
pdfserver: 1.3&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16586#M252</guid>
      <dc:creator>jagresz</dc:creator>
      <dc:date>2020-09-28T12:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16587#M253</link>
      <description>&lt;P&gt;Hi jagresz, exactly the same problem here with &lt;STRONG&gt;Splunk 4.3.4&lt;/STRONG&gt; and &lt;STRONG&gt;pdfserver 1.3&lt;/STRONG&gt;! &lt;BR /&gt;
That's because you use Splunk Web on port &lt;STRONG&gt;443&lt;/STRONG&gt; with SSL. Probably issue in pdfserver script.&lt;/P&gt;

&lt;P&gt;To work around this problem, follow only these steps:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Issue 1&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;python.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WARNING pdfhandler:551 - Restricting Firefox to following hosts only: *:53 192.168.10.10
WARNING Restricting Firefox to following hosts only: *:53 192.168.10.10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Generated PDF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Unable to connect
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In configuration file &lt;EM&gt;pdfserver/default/&lt;/EM&gt;&lt;EM&gt;pdf_server.conf&lt;/EM&gt;** uncomment:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;restrict_to_splunkweb = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Issue 2&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;python.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO    pdfhandler:558 - Executing /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox -print &lt;A href="https://192.168.10.10/en-US/" target="test_blank"&gt;https://192.168.10.10/en-US/&lt;/A&gt;.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Generated PDF: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;This Connection is Untrusted
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In pdfserver script &lt;EM&gt;pdfserver/bin/&lt;/EM&gt;&lt;EM&gt;pdfhandler.py&lt;/EM&gt;** add these code in lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;383: if port == None: port = 443
664: if target_port == None: target_port = 443
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Happy splunking!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16587#M253</guid>
      <dc:creator>zpavic</dc:creator>
      <dc:date>2012-10-18T10:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate issues with PDF Server</title>
      <link>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16588#M254</link>
      <description>&lt;P&gt;zpavik, thanks for the workaround, it turned out only the previews contained that error page, scheduled pdf reports generated fine... 8-/&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 08:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Certificate-issues-with-PDF-Server/m-p/16588#M254</guid>
      <dc:creator>jagresz</dc:creator>
      <dc:date>2012-10-19T08:36:18Z</dc:date>
    </item>
  </channel>
</rss>

