<?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: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https) in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135362#M4147</link>
    <description>&lt;P&gt;Yes, you can use SDK to connect to a remote Splunk server. You need to make sure the port is not blocked by the firewall.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2014 00:22:02 GMT</pubDate>
    <dc:creator>ywu_splunk</dc:creator>
    <dc:date>2014-02-05T00:22:02Z</dc:date>
    <item>
      <title>Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135356#M4141</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have just started working with Splunk C# SDK. I have a local Splunk instance which is not using SSL and I am able to connect to it (and get list of application, for test) using following code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ServiceArgs svcArgs = new ServiceArgs();
svcArgs.App = "search";
svcArgs.Host = "myhost";
svcArgs.Port = 8089;
splunkService = new Service(svcArgs);             
splunkService.Login("username", "password");
foreach (var app in splunkService.GetApplications())
{
MessageBox.Show(app.Label);
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, When I try to use the same code with a splunk instance configured with SSL, I get following error (which I do expect as I am not setting any property to use SSL).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;The request was aborted: Could not create SSL/TLS secure channel.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I couldn't find any good doc with steps required to make this code to connect to a SSL Splunk, but I tried to add this before "splunkService.Login" stmt.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunkService.Scheme = HttpService.SchemeHttps;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I get this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;The underlying connection was closed: An unexpected error occurred on a send.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could anyone give me pointers on what I need to do to be able to connection Splunk with SSL?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 16:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135356#M4141</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-03T16:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135357#M4142</link>
      <description>&lt;P&gt;To isolate the problem, please access the SSL endpoint under a browser, with &lt;A href="https://myhost:8089"&gt;https://myhost:8089&lt;/A&gt;. What do you get?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 21:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135357#M4142</guid>
      <dc:creator>ywu_splunk</dc:creator>
      <dc:date>2014-02-03T21:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135358#M4143</link>
      <description>&lt;P&gt;I get following error&lt;/P&gt;

&lt;P&gt;An error occurred during a connection to myhost:8089. SSL peer was unable to negotiate an acceptable set of security parameters. (Error code: ssl_error_handshake_failure_alert)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135358#M4143</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135359#M4144</link>
      <description>&lt;P&gt;Does your Splunk server require SSL client certificate to connect?&lt;/P&gt;

&lt;P&gt;Is it the first error you got?&lt;/P&gt;

&lt;P&gt;You may want to talk to your network administrator or Splunk server admin for advice.&lt;/P&gt;

&lt;P&gt;Let me know if you have additional information and would like my help further.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 22:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135359#M4144</guid>
      <dc:creator>ywu_splunk</dc:creator>
      <dc:date>2014-02-03T22:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135360#M4145</link>
      <description>&lt;P&gt;My Splunk server does require SSL client certificate (one caCertFile and one sslKeysfile is being used. And this is the first error that I get when using from browser.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135360#M4145</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-04T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135361#M4146</link>
      <description>&lt;P&gt;Also, can anyone confirm if application created using SDK can be executed from a remote server (which I believe be the case) or it has to be executed from the same server where splunk you're connecting is installed?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135361#M4146</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-04T15:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135362#M4147</link>
      <description>&lt;P&gt;Yes, you can use SDK to connect to a remote Splunk server. You need to make sure the port is not blocked by the firewall.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 00:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135362#M4147</guid>
      <dc:creator>ywu_splunk</dc:creator>
      <dc:date>2014-02-05T00:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135363#M4148</link>
      <description>&lt;P&gt;Regarding to SSL client certificate, unfortunately, the SDK currently does not support SSL client certificate. If you'd like, you may clone the SDK github repository and make a modification. You wound need to change the following function in HttpService.cs, and supply your client certificate by HttpWebRequest.ClientCertificates.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 00:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135363#M4148</guid>
      <dc:creator>ywu_splunk</dc:creator>
      <dc:date>2014-02-05T00:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135364#M4149</link>
      <description>&lt;P&gt;I figured that too. I tried adding code in HttpService.cs -&amp;gt; Send method (I have one caCert file, one sslKeysfile and sslKeysfilePassword), tried different combinations but it failed with same error. I guess It may be related to firewall issue where port 8089 is not open. I will look into it and test again. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135364#M4149</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-05T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135365#M4150</link>
      <description>&lt;P&gt;By the way I am able to do telnet on port 8089. Does it means the port is open in firewall?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 22:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135365#M4150</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-05T22:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk .NET SDK, Steps for connecting to Splunk instance using SSL (https)</title>
      <link>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135366#M4151</link>
      <description>&lt;P&gt;What do you mean by 'do telnet on port 8089'? Did you provision a telnet server on port 8089?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 01:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-NET-SDK-Steps-for-connecting-to-Splunk-instance-using-SSL/m-p/135366#M4151</guid>
      <dc:creator>ywu_splunk</dc:creator>
      <dc:date>2014-02-06T01:17:40Z</dc:date>
    </item>
  </channel>
</rss>

