<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118590#M24613</link>
    <description>&lt;P&gt;Yes I've created rootCA and sign indexer.pem and forwarder.pem with it.&lt;/P&gt;

&lt;P&gt;sslPassword is the password you set when you generate forwarder.pem &lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk createssl server-cert -d /opt/splunk/etc/certs/ -n forwarder -p&lt;/P&gt;

&lt;P&gt;Enter PEM pass phrase:&lt;BR /&gt;
Verifying - Enter PEM pass phrase:&lt;/P&gt;

&lt;P&gt;Make sure that you set the common name to indexer when you generate indexer.pem as it will be checked by forwarder on outputs.conf&lt;/P&gt;

&lt;P&gt;sslCommonNameToCheck = indexer&lt;/P&gt;

&lt;P&gt;Common Name (e.g. server FQDN or YOUR name) []:indexer&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ahmed&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jan 2015 23:40:51 GMT</pubDate>
    <dc:creator>aakwah</dc:creator>
    <dc:date>2015-01-24T23:40:51Z</dc:date>
    <item>
      <title>Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118587#M24610</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;

&lt;P&gt;I have a QA setup with 1 search head, 2 indexers and 1 universal forwarder. I have created the following certificates on splunk search head box as mentioned in the docs: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;esCACertificate.csr, esCACertificate.pem, esCAPrivateKey, esForwarderCertificate.csr ,esForwarderCertificate.pem, esForwarderKey.key, esServerCertificate.csr , esServerCertificate.pem, esServerPrivateKey.key, esSplunkWebCert.csr, esSplunkWebCert.pem, esSplunkWebPrivateKey.key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then copied all these certs to both the indexers and universal forwarder. I was able to setup splunkweb ssl all fine as mentioned here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Security/Self-signcertificatesforSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Security/Self-signcertificatesforSplunkWeb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now i tried to setup SSL between two indexers and UF as per the docs: Indexer - Forwarder : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Security/ConfigureSplunkforwardingtousesignedcertificates"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Security/ConfigureSplunkforwardingtousesignedcertificates&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Here's my IDX config&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = xyz.com
[splunktcp-ssl:9997]
compressed = true
[SSL]
password = server certificate's password
rootCA = $SPLUNK_HOME/etc/auth/escerts/esCACertificate.pem
serverCert = $SPLUNK_HOME/etc/auth/escerts/esServerCertificate.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the splunkd.log after i restarted splunk service&lt;BR /&gt;
    ******&lt;BR /&gt;
    ERROR TcpInputConfig - SSL server certificate not found, or password is wrong - SSL ports will not be opened&lt;BR /&gt;
    ******&lt;/P&gt;

&lt;P&gt;My UF outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = splunkssl

[tcpout:splunkssl]
compressed = true
server = x:9997,y:9997
sslCertPath = $SPLUNK_HOME/etc/auth/escerts/esServerCertificate.pem
sslPassword = esServerCertificates password
sslRootCAPath = $SPLUNK_HOME/etc/auth/escerts/esCACertificate.pem
sslVerifyServerCert = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarted UF splunk service. Here's the error from splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR TcpOutputProc - Error initializing SSL context - invalid sslCertPath for server x:9997  and 
ERROR TcpOutputProc - Error initializing SSL context - invalid sslCertPath for server y:9997  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have verified the passwords and they are correct. Please advise.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 01:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118587#M24610</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-01-24T01:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118588#M24611</link>
      <description>&lt;P&gt;The following configuration is working fine with me:&lt;/P&gt;

&lt;P&gt;I generated CA cert and indexer and forwarders certs as per the following:&lt;/P&gt;

&lt;P&gt;CA cert:&lt;/P&gt;

&lt;P&gt;mkdir -p /opt/splunk/etc/certs&lt;BR /&gt;
export OPENSSL_CONF=/opt/splunk/openssl/openssl.cnf&lt;BR /&gt;
/opt/splunk/bin/genRootCA.sh -d /opt/splunk/etc/certs/&lt;/P&gt;

&lt;P&gt;indexer cert:&lt;BR /&gt;
/opt/splunk/bin/splunk createssl server-cert -d /opt/splunk/etc/certs/ -n indexer -c indexer -p&lt;/P&gt;

&lt;P&gt;forwarder cert:&lt;BR /&gt;
/opt/splunk/bin/splunk createssl server-cert -d /opt/splunk/etc/certs/ -n forwarder -p&lt;/P&gt;

&lt;P&gt;on indexer:&lt;/P&gt;

&lt;P&gt;[splunktcp-ssl://9997]&lt;BR /&gt;
connection_host = none&lt;BR /&gt;
[SSL]&lt;BR /&gt;
rootCA = /opt/splunk/etc/system/local/certs/cacert.pem&lt;BR /&gt;
serverCert = /opt/splunk/etc/system/local/certs/indexer.pem&lt;BR /&gt;
password = P@ssw0rd&lt;BR /&gt;
requireClientCert = false&lt;/P&gt;

&lt;P&gt;on forwarder:&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = default-autolb-group&lt;BR /&gt;
[tcpout:default-autolb-group]&lt;BR /&gt;
server = indexer1:9997, indexer2:9997 &lt;BR /&gt;
sslRootCAPath = /opt/splunkforwarder/etc/apps/search/local/certs/cacert.pem&lt;BR /&gt;
sslCertPath = /opt/splunkforwarder/etc/apps/search/local/certs/forwarder.pem&lt;BR /&gt;
sslPassword = P@ssw0rd&lt;BR /&gt;
sslCommonNameToCheck = indexer&lt;BR /&gt;
sslVerifyServerCert = true&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ahmed Elakwah&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 08:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118588#M24611</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2015-01-24T08:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118589#M24612</link>
      <description>&lt;P&gt;Hey Thanks for the quick instructions.... What i read is, you have created rootCA, Indexer and forwarder on indexer 1 and copied then over to indexer 2 and forwarder?&lt;/P&gt;

&lt;P&gt;I tried the exact same configs....on the forwarder's outputs.config, when you specified sslPassword = P@ssw0rd, is that server certificate's password or forwarder's?&lt;/P&gt;

&lt;P&gt;Thanks again for all your help.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 17:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118589#M24612</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-01-24T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118590#M24613</link>
      <description>&lt;P&gt;Yes I've created rootCA and sign indexer.pem and forwarder.pem with it.&lt;/P&gt;

&lt;P&gt;sslPassword is the password you set when you generate forwarder.pem &lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk createssl server-cert -d /opt/splunk/etc/certs/ -n forwarder -p&lt;/P&gt;

&lt;P&gt;Enter PEM pass phrase:&lt;BR /&gt;
Verifying - Enter PEM pass phrase:&lt;/P&gt;

&lt;P&gt;Make sure that you set the common name to indexer when you generate indexer.pem as it will be checked by forwarder on outputs.conf&lt;/P&gt;

&lt;P&gt;sslCommonNameToCheck = indexer&lt;/P&gt;

&lt;P&gt;Common Name (e.g. server FQDN or YOUR name) []:indexer&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ahmed&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 23:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118590#M24613</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2015-01-24T23:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118591#M24614</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Thanks, i promise this would be my last question....how about if i have two indexers? can i just copy the same indexer.pem to the other indexer?

Thanks,
Raghav
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Jan 2015 15:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118591#M24614</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-01-25T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118592#M24615</link>
      <description>&lt;P&gt;No problems at all .. Yes you can copy indexer.pem to another indexers and it will work fine and also you can create new cert for indexer2 as long as it is signed by the same rootCA but the common namd should be the same as it is checked by forwarder&lt;BR /&gt;
sslCommonNameToCheck = indexer&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ahmed&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jan 2015 15:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118592#M24615</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2015-01-25T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting errors with my SSL configuration between a universal forwarder and indexers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118593#M24616</link>
      <description>&lt;P&gt;The createssl should ask for a password, use that one for the case you're deploying&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 20:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-errors-with-my-SSL-configuration-between-a/m-p/118593#M24616</guid>
      <dc:creator>guarisma</dc:creator>
      <dc:date>2020-03-17T20:35:32Z</dc:date>
    </item>
  </channel>
</rss>

