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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...