I want to configure a certificate for Splunk so that I could make API requests to it on port 8089. Currently the following command fails because Splunk's default certificate is used, and the default certificate doesn't work for the hostname my.splunk.server
:
curl -s -u admin:password https://my.splunk.server:8089/services/search/jobs \
-d search='search some search term'
How can I configure the certificate?