Security

server_pkcs1.pem cert expired

bfrisan
Loves-to-Learn

Our Nessus vulnerability scanner is flagging that the server_pkcs1.pem certificate is expired.

I have verified that it is expired but unable to renew it.   Stopping service, renaming file and restarting service does not recreate it.  How do you renew this certificate?

0 Karma

usd0872
Path Finder

Found the same file mysteriously auto-created and after a bit of tinkering found what caused its creation, at least in my case:

splunk backup kvstore -pointInTime true -archiveName my_archive

The file vanishes again once the process finishes. But if for some reason it crashes/gets killed/whatever, the file is left in the filesystem.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Splunk doesn't by default come with a cert file called server_pkcs1.pem. It must be a piece of configuration explicitly done in your deployment. So you have to find

1) Where (if anywhere) its use is defined ( @marnall 's hint can help but it doesn't have to contain all possible references to certs - some addons can have use their own cert settings).

2) Where this cert comes from. As far as I remember, only the default cert can be automatically (re)created.

0 Karma

marnall
Motivator

Can you run btool on the machine as the splunk user to make sure that the server_pkcs1.pem certificate is indeed the one used by splunk?

/opt/splunk/bin/splunk btool server list sslConfig

 Look for the serverCert variable

0 Karma

bfrisan
Loves-to-Learn

Sorry for delayed response, holidays got in the way.

I ran "splunk btool server list sslConfig" and it returned no data.  I tried it without sslconfig and searched for that cert name and nothing

When I run openssl.exe x509 -enddate -noout -text -in "c:\programs files\splunk\etc\auth\server_pkcs1.pem" it shows as the issuer being Splunk.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Just because the issuer is "Splunk something", doesn't mean the file itself couldn't have been - for example - manually renamed from the original file which was created by some built-in scripts.

Unfortunately you're using windows so I won't give you a find | grep oneliner to find whether it's referenced anywhere. You have to check for yourself if any *.conf file calls out to it.

0 Karma

bfrisan
Loves-to-Learn

Yea no reference to server_pkcs1.pem in server.conf.  I already renamed file, and finding is gone.  Just watching/waiting now to make sure no issues.  Thanks!

 

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...