Getting Data In

How do you do a silent installation of a universal forwarder with own certificates and password?

pichertklaus
Explorer

Hello,

We tried to install the latest universal forwarder silently on our Windows machines using the following command

msiexec /i splunkforwarder-7.1.2-a0c72a66db66-x64-release.msi 
    DEPLOYMENT_SERVER="<deploysrvname>:8089" 
    LAUNCHSPLUNK=0 
    SERVICESTARTTYPE=auto 
    CERTFILE="%CD%\server.pem" 
    CERTPASSWORD=<certpassword> 
    ROOTCACERTFILE="%CD%\cacert.pem" 
    SPLUNKPASSWORD=<splunkpassword> 
    AGREETOLICENSE=yes /quiet

When the service is starting, however, we get the following error in splunkd.log, and it will not connect to DC.

03-28-2019 13:28:07.041 +0100 ERROR SSLCommon - Can't read key file C:\Program Files\SplunkUniversalForwarder\etc\auth\server.pem errno=101077092 error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt.
03-28-2019 13:28:07.041 +0100 ERROR HTTPServer - SSL context could not be created - error in cert or password is wrong
03-28-2019 13:28:07.041 +0100 ERROR HTTPServer - SSL will not be enabled

When I paste the certpassword into etc/system/local/server.conf and restart the service it will come up correctly and connect to DC to receive its apps.

Where is the error?

Regards,
Klaus

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...