<?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: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361756#M65965</link>
    <description>&lt;P&gt;up please im still stuck&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 08:39:42 GMT</pubDate>
    <dc:creator>timoti</dc:creator>
    <dc:date>2018-06-01T08:39:42Z</dc:date>
    <item>
      <title>How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361754#M65963</link>
      <description>&lt;P&gt;Hello, after 2 days of trying hard on this problem, I finally give up and now I am posting it here.&lt;/P&gt;

&lt;P&gt;Well, I need to set up my Splunk REST API with my own self-signed certificates. I've already configured the usage of my own self-signed certificates for SplunkWeb, but I'm stuck on the configuration for the REST API 8089 Port. &lt;BR /&gt;
Here's the problem : &lt;BR /&gt;
I've already generated my own server certificates thanks to the Splunk docs : &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4833iA1B4617805FBA694/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;located in /Application/Splunk/etc/auth/myNewCerts&lt;/P&gt;

&lt;P&gt;Here's my configuration file server.conf in /Applications/Splunk/etc/system/local&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4834iAB302154F6BD069B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When I run commands to verify the matches between my certs and my keys, they match and when I start Splunk everything looks ok.&lt;/P&gt;

&lt;P&gt;But when I check the log file at /Applications/Splunk/var/log/splunk/splunkd.log : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ tail -f splunkd.log | grep ERR

04-25-2018 16:42:50.272 +0200 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/splunk_instrumentation/bin/on_splunk_start.py" ERROR:InstrumentationInit:[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:676)

04-25-2018 16:42:52.779 +0200 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/splunk_monitoring_console/bin/dmc_config.py" Socket error communicating with splunkd (error=[X509: KEY_VALUES_MISMATCH] key values mismatch (_ssl.c:2768)), path = /services/shcluster/config?output_mode=json


openssl version : OpenSSL 1.0.2o  27 Mar 2018
OS version : macOS Sierra Version 10.12.6 (16G29)
Python version : Python 2.7.14
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sorry for my bad English, waiting for help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361754#M65963</guid>
      <dc:creator>timoti</dc:creator>
      <dc:date>2018-04-25T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361755#M65964</link>
      <description>&lt;P&gt;Up : &lt;BR /&gt;
When i set the option "requireClientCert = false" instead of true, i can connect myself on the 8089 interface (&lt;A href="https://localhost:8089"&gt;https://localhost:8089&lt;/A&gt;) with my own certificate added on my computer. Then when i try to connect to "https://[myip]:8089" with another computer on the same local network, it request a valid certificate that the computer hasnt, so it cant connect&lt;BR /&gt;
. But the splunkweb interface is still accesible via "https://[myi p]:8000" from any other computer.&lt;BR /&gt;
I dont know how its works ??&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361755#M65964</guid>
      <dc:creator>timoti</dc:creator>
      <dc:date>2018-04-27T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361756#M65965</link>
      <description>&lt;P&gt;up please im still stuck&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 08:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361756#M65965</guid>
      <dc:creator>timoti</dc:creator>
      <dc:date>2018-06-01T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361757#M65966</link>
      <description>&lt;P&gt;Hi. Why would you try to add a self signed cert... when splunkd already has its own self signed cert....&lt;BR /&gt;
What are you trying to acces in the splunkd?&lt;/P&gt;

&lt;P&gt;If splunkweb is working, splunkd (RestApi) is already working.&lt;/P&gt;

&lt;P&gt;I suggest you to see rest Api uri qick-reference.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.3/RESTREF/RESTlist"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.3/RESTREF/RESTlist&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want to acces from browser you need to acces a rest endpoint with rest method available, and tell to the browser to go ahead when promted the self signed cert warning&lt;/P&gt;

&lt;P&gt;here an example:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://localhost:8089/services/authentication/current-context"&gt;https://localhost:8089/services/authentication/current-context&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;NOTE the https part since there is not an automatic redirec&lt;/P&gt;

&lt;P&gt;In order to avoid the request of a valid certificate... in every computer get rid of the self-signed cert and get a trusted SSL certificate, you can create your free trusted cert with Let's Encrypt &lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2016/08/12/secure-splunk-web-in-five-minutes-using-lets-encrypt.html"&gt;https://www.splunk.com/blog/2016/08/12/secure-splunk-web-in-five-minutes-using-lets-encrypt.html&lt;/A&gt;&lt;BR /&gt;
Link Above is How-to to secure splunkWeb.... I don´t now how to add it to splunkd... I would like to know ... that's why I got here...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-up-my-Splunk-REST-API-with-self-signed-certificates/m-p/361757#M65966</guid>
      <dc:creator>marcolesh</dc:creator>
      <dc:date>2018-09-27T23:47:28Z</dc:date>
    </item>
  </channel>
</rss>

