Splunk Dev

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

wajihullahbaig
Explorer

One problem solved OK so the first problem was solved. Now how do I get past this error as the title suggests? Since I am using C# for RESTful services, if I am correct I need to know where I can get certificate and install it on client side so that a successful authentication can be initiated.
I am trying out a simple login using C#.

Please guide. Thank you.

Tags (2)
0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

This is almost certainly a server name validation problem. You can either install the signing certificate (from $SPLUNK_HOME/etc/auth) into your client's trusted store, or you can bypass the trust in code as indicated here or here.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

This is almost certainly a server name validation problem. You can either install the signing certificate (from $SPLUNK_HOME/etc/auth) into your client's trusted store, or you can bypass the trust in code as indicated here or here.

wajihullahbaig
Explorer

i just added the line -
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

0 Karma

Ayn
Legend

I'm no expert on the subject of how SSL/TLS is handled in C#, but a quick google search on the error message returns results that seem to indicate that the problem lies with the certificate validation. By default Splunk uses self-signed certificates which will generate an error because they can't be validated by a trusted CA. Some more info here:

http://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-...
http://www.google.com/search?q=could+not+establish+trust+relationship+for+the+ssl%2Ftls+secure+chann...

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...