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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!