Security

How to use Splunk rest api in secure mode

Nagarajv
Explorer

I started exploring splunk ReST API and I'm using postman to test them.
Splunk Rest api is throwing error if SSL verification is turned on in postman.

Settings
alt text

Error
alt text

If i turn SSL certificate verification off, i'm getting the response from splunkd
Request
https://localhost:8089/services/auth/login
Response
"{
"sessionKey": "ezeocaLe6jyO4BiVwBsKDhDxEvmXi10rg9L0jYJrTzTx_XdFM_4Xsd3zupypHZn8QxCHVtffg9^Mt05dcl_lyIzE7puXrP9DbXSNriYp",
"message": "",
"code": ""
}"

0 Karma

harsmarvania57
Ultra Champion

Hi,

By default Splunk use their own signed certificate with management port (8089), so to send request in secure mode you can configure Splunk management port with self-signed certificate or third party certificate, if you do not want to configure self-signed certificate or third party certificate then import Splunk CA from $SPLUNK_HOME/etc/auth/ to your browser if you are using POSTMAN Chome App, have a look at Postman Docs http://blog.getpostman.com/2014/01/28/using-self-signed-certificates-with-postman/

If you want to configure self-signed certificate in this case as well you need to import root CA in your browser Trusted Certificate store.

0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...