Alerting

How add multiple certificate authority path files to web.conf using sslRootCAPath

alfredoh14
Explorer

hello,
I have 2 files that contains the path of the root Certificate Authority that issued my server certificate.
Not sure if the above is logically correct but i do have 2 files that have the paths to the certificate authority, and I must use both of them somehow/someway in web.conf.

my web.conf settings are similar to the below:
### START SPLUNK WEB USING HTTPS:8443 ###
enableSplunkWebSSL = 1
httpport = 8443
### SSL CERTIFICATE FILES ###
privKeyPath = $SPLUNK_HOME\etc\auth\DOD.web.certificates\privkey.pem
serverCert = $SPLUNK_HOME\etc\auth\DOD.web.certificates\cert.pem
sslRootCAPath =

However, for "sslRootCAPath =", i need to add both of the files i have.
However, the splunk documentation does not specify how I would be able to add these files, or if I can add them with ",", or if there is another property that would allow additional files with certificate authority paths.

the files and sample of their content are below.
Basically they are made-up of "noise" except for the header and footer section of the file.
So not sure how I would combine them into a single file if that is what splunk would like.
ca-200.pem -----BEGIN CERTIFICATE-----
MIIEjzCCA3egAwIBAgICAwMwDQYJKoZIhvcNAQELBQAwWzELMAkGA1UEBhMCVVMxGDAWBgNVBAoT
-----END CERTIFICATE-----

MyCompanyRootCA3.pem
-----BEGIN CERTIFICATE-----
MIIDczCCAlugAwIBAgIBATANBgkqhkiG9w0BAQsFADBbMQswCQYDVQQGEwJVUzEY
-----END CERTIFICATE----

any help is apreciated.

 

0 Karma
1 Solution

tscroggins
Influencer

Hi @alfredoh14,

The "noise" is the Base64 certificate data. To combine multiple PEM certificate files into a single file, simply concatenate the files:

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

General information on PEM is readily available online. Splunk also provides a quick tutorial at https://docs.splunk.com/Documentation/Splunk/latest/Security/HowtoprepareyoursignedcertificatesforSp....

You can reference the combined PEM file in the server.conf [sslConfig] stanza sslRootCAPath setting, e.g.:

# $SPLUNK_HOME\etc\system\local\server.conf

[sslConfig]
sslRootCAPath = X:\path\to\cacerts.pem

 

View solution in original post

0 Karma

tscroggins
Influencer

Hi @alfredoh14,

The "noise" is the Base64 certificate data. To combine multiple PEM certificate files into a single file, simply concatenate the files:

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

General information on PEM is readily available online. Splunk also provides a quick tutorial at https://docs.splunk.com/Documentation/Splunk/latest/Security/HowtoprepareyoursignedcertificatesforSp....

You can reference the combined PEM file in the server.conf [sslConfig] stanza sslRootCAPath setting, e.g.:

# $SPLUNK_HOME\etc\system\local\server.conf

[sslConfig]
sslRootCAPath = X:\path\to\cacerts.pem

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...