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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...