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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...