{"id":12257,"date":"2010-07-09T11:17:13","date_gmt":"2010-07-09T16:17:13","guid":{"rendered":"http:\/\/www.anthonyreinke.com\/?p=257"},"modified":"2018-05-07T21:23:08","modified_gmt":"2018-05-08T03:23:08","slug":"web-http-certificate-for-splunk","status":"publish","type":"post","link":"https:\/\/anthonyreinke.com\/index.php\/2010\/07\/09\/web-http-certificate-for-splunk\/","title":{"rendered":"Web (http) Certificate for Splunk"},"content":{"rendered":"<p>I prefer to use a signed web certificate and not the self signed certificate. \u00a0I found a couple different topics on the process, but found that most of them referred to the distributive searching certificate. \u00a0Here are the step to generate the certificate and get it in to the right place for Splunk to use it.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>## Generate the local key<br \/>\n<span style=\"color: #008000;\">openssl genrsa -out linux0001.key 4096<\/span><\/p>\n<p>## Generate the csr<br \/>\n<span style=\"color: #008000;\">opensll req -new -key linux0001.key -out linux0001.csr<\/span><\/p>\n<p>## Submit the .csr file to the CA<\/p>\n<p>## Move the original certs for backup purposes<br \/>\n<span style=\"color: #008000;\">mv cert.pem cert.pem.bak<\/span><br \/>\n<span style=\"color: #008000;\"> mv privkey.pem privkey.pem.bak<\/span><\/p>\n<p>## Convert the binary cert to a standard cert<br \/>\n<span style=\"color: #008000;\">openssl x509 -in certnew.cer -inform DER -out cert.pem -outform PEM<\/span><\/p>\n<p>## Copy the new files in the Splunk folder<br \/>\n<span style=\"color: #008000;\">cp linux0001.key \/opt\/splunk\/share\/splunk\/certs\/privkey.pem<\/span><br \/>\n<span style=\"color: #008000;\"> cp cert.pem \/opt\/splunk\/share\/splunk\/certs\/cert.pem<\/span><\/p>\n<p>## Restart Splunk<br \/>\n<span style=\"color: #008000;\">\/opt\/splunk\/bin\/splunk restart<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I prefer to use a signed web certificate and not the self signed certificate. \u00a0I found a couple different topics on the process, but found that most of them referred to the distributive searching certificate. \u00a0Here are the step to generate the certificate and get it in to the right place for Splunk to use [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12257","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/posts\/12257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/comments?post=12257"}],"version-history":[{"count":2,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/posts\/12257\/revisions"}],"predecessor-version":[{"id":12419,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/posts\/12257\/revisions\/12419"}],"wp:attachment":[{"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/media?parent=12257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/categories?post=12257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anthonyreinke.com\/index.php\/wp-json\/wp\/v2\/tags?post=12257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}