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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...