Security

Configuring splunk Mobile Access Server -- How to configure a password for own certificate?

Tarek1977
Path Finder

Hello all,

I've configured the splunk mobile access server and put our own .pem files (password secured) into the SSL directory, as described in the documentation. If I want to start the server I get following error message:

Error: error:0906A068:PEM routines:PEM_do_header:bad password read

at Error (native)
at Object.createSecureContext (_tls_common.js:67:17)

at new Server (https.js:36:14)

at Object.exports.createServer (https.js:56:10)

at Object.checkServer [as check] (/usr/mcf/mserver/server/lib/util/port_checker.js:4:52)

at Object.<anonymous> (/usr/mcf/mserver/server/splunkm.js:41:21)

at Module._compile (module.js:449:26)

at Object.Module._extensions..js (module.js:467:10)

Is there an option to provide the password in the config_local.json? Here's the entry from the config_local.json:

...

"ssl": {

"cert": "/usr/mcf/mserver/server/config/ssl/xxx.net-key-cert.pem",

"key": "/usr/mcf/mserver/server/config/ssl/xxx.net-key.pem"

...

I've tried the option: "password": "xxx" , but it did not work. I didn't find any documentation for manually configuring this file. Thanks for your help!

0 Karma
1 Solution

sni_splunk
Splunk Employee
Splunk Employee

Unfortunately, this option (passphrase for the private key) is not exposed via configuration, so it is not configurable yet.

I logged an enhancement request (MOBILE-991) for this and will post the update here once it gets fixed in our next release. Thanks.

View solution in original post

0 Karma

sni_splunk
Splunk Employee
Splunk Employee

Unfortunately, this option (passphrase for the private key) is not exposed via configuration, so it is not configurable yet.

I logged an enhancement request (MOBILE-991) for this and will post the update here once it gets fixed in our next release. Thanks.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...