<?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 Generate Splunk Cert with &amp;quot;bin/splunk createssl server-cert&amp;quot; including Server Alternative Name (SAN) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752359#M119464</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;i am trying to connect from EDGE Processor to my Splunk Server and iam getting the following error:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;/opt/splunk-edge/bin/splunk-edge onboard

Error: Post "https://server:8089/servicesNS/nobody/splunk_pipeline_builders/tenant/agent-management/v1/agents/splunk-edge/ID/register": tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead
2025/08/28 11:07:47 Post "https://server:8089/servicesNS/nobody/splunk_pipeline_builders/tenant/agent-management/v1/agents/splunk-edge/ID/register": tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Certificate is generated with the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/bin/splunk createssl server-cert -d etc/auth -n server -c &amp;lt;server-name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cnf file used by this command is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/share/openssl3/openssl.cnf&lt;/LI-CODE&gt;&lt;P&gt;Does anyone know how to include the SAN in the default certs?&lt;/P&gt;&lt;P&gt;I am onPrem and using Splunk 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 09:14:44 GMT</pubDate>
    <dc:creator>stehsa</dc:creator>
    <dc:date>2025-08-28T09:14:44Z</dc:date>
    <item>
      <title>Generate Splunk Cert with "bin/splunk createssl server-cert" including Server Alternative Name (SAN)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752359#M119464</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;i am trying to connect from EDGE Processor to my Splunk Server and iam getting the following error:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;/opt/splunk-edge/bin/splunk-edge onboard

Error: Post "https://server:8089/servicesNS/nobody/splunk_pipeline_builders/tenant/agent-management/v1/agents/splunk-edge/ID/register": tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead
2025/08/28 11:07:47 Post "https://server:8089/servicesNS/nobody/splunk_pipeline_builders/tenant/agent-management/v1/agents/splunk-edge/ID/register": tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Certificate is generated with the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/bin/splunk createssl server-cert -d etc/auth -n server -c &amp;lt;server-name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cnf file used by this command is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/share/openssl3/openssl.cnf&lt;/LI-CODE&gt;&lt;P&gt;Does anyone know how to include the SAN in the default certs?&lt;/P&gt;&lt;P&gt;I am onPrem and using Splunk 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 09:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752359#M119464</guid>
      <dc:creator>stehsa</dc:creator>
      <dc:date>2025-08-28T09:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Splunk Cert with "bin/splunk createssl server-cert" including Server Alternative Name (SAN)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752378#M119465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253174"&gt;@stehsa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know there are no params to send to createssl to configure the SAN but you could edit the config file to do it, I haven’t tried this personally as I usually use OpenSSL but the following could work with a few tweaks to your org/dns etc.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no

[req_distinguished_name]
C = US
ST = State
L = City
O = Organization
OU = IT Department
CN = your-server-name

[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names

[alt_names]
DNS.1 = your-server-name
DNS.2 = server
DNS.3 = localhost
IP.1 = 192.168.1.100
IP.2 = 127.0.0.1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alternatively you could use OpenSSL commands directly:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Generate private key
openssl genrsa -out /opt/splunk/etc/auth/server.key 2048

# Generate certificate with SAN in one command
openssl req -new -x509 -key /opt/splunk/etc/auth/server.key -out /opt/splunk/etc/auth/server.pem -days 365 -subj "/C=US/ST=State/L=City/O=Organization/CN=your-server-name" -addext "subjectAltName=DNS:your-server-name,DNS:server,DNS:localhost,IP:127.0.0.1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; &lt;STRONG&gt;Did this answer help you? If so, please consider&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 12:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752378#M119465</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-28T12:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Splunk Cert with "bin/splunk createssl server-cert" including Server Alternative Name (SAN)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752480#M119479</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I will try it next week.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;A bit more context, i need this for the stanza [sslConfig] which is responsible for Splunk internal communication. And until now i did not manage to to make it work with other certs than the default generated one.&amp;nbsp;&lt;BR /&gt;I will give it another try and get back to you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 09:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Generate-Splunk-Cert-with-quot-bin-splunk-createssl-server-cert/m-p/752480#M119479</guid>
      <dc:creator>stehsa</dc:creator>
      <dc:date>2025-08-29T09:42:02Z</dc:date>
    </item>
  </channel>
</rss>

