Splunk Dev

SPLUNK SDK - SSL Error

ajaykumarsuri
New Member

Hi All,

Using C# SPLUNK SDK to send logs directly to the indexer on port 8089.
It gives me an error when trying to connect to the indexer - The request was aborted: Could not create SSL/TLS secure channel.
Doesnt seem happy with the certificate being used.
We are using the default DefaultSplunkServerCertificate with SplunkCA as the root.
Could that be the reason?

It worked fine however on our dev instance where we had installed a local SPLUNK indexer.
We had worked with same default certificates over there.

The only difference seems to be that application server and dev SPLUNK indexer are on the same domain while for the test instance they are on different domains.

Any suggestions please?

Regards,

Ajay Suri

Tags (2)
0 Karma

ajaykumarsuri
New Member

Exception Trace:
System.Net.WebException was unhandled
Message="The request was aborted: Could not create SSL/TLS secure channel."
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at Splunk.HttpService.Send(String path, RequestMessage request) in c:\Users\Andy\Documents\GitHub\splunk-sdk-csharp\SplunkSDK\HttpService.cs:line 401
at Splunk.Service.Send(String path, RequestMessage request) in c:\Users\Andy\Documents\GitHub\splunk-sdk-csharp\SplunkSDK\Service.cs:line 907
at Splunk.HttpService.Post(String path, Dictionary`2 args) in c:\Users\Andy\Documents\GitHub\splunk-sdk-csharp\SplunkSDK\HttpService.cs:line 319
at Splunk.Service.Login(String username, String password) in c:\Users\Andy\Documents\GitHub\splunk-sdk-csharp\SplunkSDK\Service.cs:line 702
at SPLUNK.Program.Main(String[] args) in F:\SPLUNK\SPLUNK\SPLUNK\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

0 Karma
Get Updates on the Splunk Community!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...