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

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!

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