<?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 DB Connect Certificates do not conform to algorithm constraints Error in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/658451#M79782</link>
    <description>&lt;P&gt;Insight on my problem below is appreciated!&lt;BR /&gt;&lt;BR /&gt;I am using DB Connect to attempt to connect to a MSSQL database. When I Save/Edit the connection I get the following error from Splunkweb:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Certificates do not conform to algorithm constraints". ClientConnectionId:XXXXXXXXXXXXXXXXXX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the following (combination) error from splunk_app_db_connect_server.log and splunk_app_db_connect_audit_server.log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Certificates do not conform to algorithm constraints". ClientConnectionId:XXXXXXXXXXXXXXXXXX
...........................
Caused by: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on signature algorithm: SHA1withRSA
	at java.base/sun.security.provider.certpath.AlgorithmChecker.check(AlgorithmChecker.java:237)
	at java.base/sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1661)
	... 99 common frames omitted
Collapse&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following to resolve the problem with no luck:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Added the following to the DB Connect Task Server JVM Options:&lt;BR /&gt;-Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"&lt;/LI&gt;&lt;LI&gt;Added the following parameters to the JDBC url:&lt;BR /&gt;encrypt=true;trustServerCertificate=true;&lt;/LI&gt;&lt;LI&gt;I have also installed and attempted to run the DB Connect troubleshooting tool (ran using the following command:&lt;EM&gt; python3 -m troubleshooting_tools.start)&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|----|----|----|----|----|
| DB Connect |
| Troubleshooting Tools |
|----|----|----|----|----|
Which tool do you want to use?
1. Troubleshoot Starts
2. Services Status
3. Troubleshoot Connections
4. Troubleshoot Inputs
: 3
Troubleshoot Connections
Splunk URL: localhost
Splunk management port: 8089
Splunk username (Default value is &amp;lt;admin&amp;gt;): admin
admin
Splunk password:
********
Connection name: MY_CONNECTION
Connector path: %PATH_TO_CONNECTOR_JAR%
JDBC path: %PATH_TO_JDBC_DRIVER_JAR%&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which leads to the following output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;An error occurred while trying to get the connection with the name : MY_CONNECTION. Error message: Data must be padded to 16 byte boundary in CBC mode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, here is some information regarding my environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OS Oracle Linux 9&lt;/LI&gt;&lt;LI&gt;Splunk Enterprise Splunk 9.1.0.2&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Splunk DB Connect 3.14.1&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Splunk DBX Add-on for Microsoft SQL Server JDBC 1.2.0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Manually installed additional Microsoft JDBC Driver 12.4 for SQL Server driver mssql-jdbc-12.4.1.jre11.jar&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;***The above errors are occurring for both Connection Types.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;JAVA openjdk 11.0.20&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 22 Sep 2023 18:27:10 GMT</pubDate>
    <dc:creator>splunkkitty</dc:creator>
    <dc:date>2023-09-22T18:27:10Z</dc:date>
    <item>
      <title>DB Connect Certificates do not conform to algorithm constraints Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/658451#M79782</link>
      <description>&lt;P&gt;Insight on my problem below is appreciated!&lt;BR /&gt;&lt;BR /&gt;I am using DB Connect to attempt to connect to a MSSQL database. When I Save/Edit the connection I get the following error from Splunkweb:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Certificates do not conform to algorithm constraints". ClientConnectionId:XXXXXXXXXXXXXXXXXX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the following (combination) error from splunk_app_db_connect_server.log and splunk_app_db_connect_audit_server.log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Certificates do not conform to algorithm constraints". ClientConnectionId:XXXXXXXXXXXXXXXXXX
...........................
Caused by: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on signature algorithm: SHA1withRSA
	at java.base/sun.security.provider.certpath.AlgorithmChecker.check(AlgorithmChecker.java:237)
	at java.base/sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1661)
	... 99 common frames omitted
Collapse&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following to resolve the problem with no luck:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Added the following to the DB Connect Task Server JVM Options:&lt;BR /&gt;-Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"&lt;/LI&gt;&lt;LI&gt;Added the following parameters to the JDBC url:&lt;BR /&gt;encrypt=true;trustServerCertificate=true;&lt;/LI&gt;&lt;LI&gt;I have also installed and attempted to run the DB Connect troubleshooting tool (ran using the following command:&lt;EM&gt; python3 -m troubleshooting_tools.start)&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|----|----|----|----|----|
| DB Connect |
| Troubleshooting Tools |
|----|----|----|----|----|
Which tool do you want to use?
1. Troubleshoot Starts
2. Services Status
3. Troubleshoot Connections
4. Troubleshoot Inputs
: 3
Troubleshoot Connections
Splunk URL: localhost
Splunk management port: 8089
Splunk username (Default value is &amp;lt;admin&amp;gt;): admin
admin
Splunk password:
********
Connection name: MY_CONNECTION
Connector path: %PATH_TO_CONNECTOR_JAR%
JDBC path: %PATH_TO_JDBC_DRIVER_JAR%&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which leads to the following output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;An error occurred while trying to get the connection with the name : MY_CONNECTION. Error message: Data must be padded to 16 byte boundary in CBC mode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, here is some information regarding my environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;OS Oracle Linux 9&lt;/LI&gt;&lt;LI&gt;Splunk Enterprise Splunk 9.1.0.2&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Splunk DB Connect 3.14.1&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Splunk DBX Add-on for Microsoft SQL Server JDBC 1.2.0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Manually installed additional Microsoft JDBC Driver 12.4 for SQL Server driver mssql-jdbc-12.4.1.jre11.jar&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;***The above errors are occurring for both Connection Types.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;JAVA openjdk 11.0.20&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/658451#M79782</guid>
      <dc:creator>splunkkitty</dc:creator>
      <dc:date>2023-09-22T18:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Certificates do not conform to algorithm constraints Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/669431#M79978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same problem. Anyone can help?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:05:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/669431#M79978</guid>
      <dc:creator>Imadam</dc:creator>
      <dc:date>2023-11-22T09:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Certificates do not conform to algorithm constraints Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/669473#M79979</link>
      <description>&lt;P&gt;Here are my findings from a case I opened on this issue a while back. This fixed it for me.&lt;/P&gt;&lt;P&gt;Splunk verifies the TLS certificates using &lt;SPAN&gt;SHA-1&lt;/SPAN&gt; cryptography. The default policy on the Linux server needed to be updated to SHA-1.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;update-crypto-policies --set DEFAULT:SHA1&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening#doc-wrapper" target="_blank"&gt;https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 13:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/669473#M79979</guid>
      <dc:creator>splunkkitty</dc:creator>
      <dc:date>2023-11-22T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Certificates do not conform to algorithm constraints Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/692234#M80764</link>
      <description>&lt;P&gt;Thank you for posting your solution.&amp;nbsp; This was our problem after migration to RHEL9 and your solution fixed it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 18:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Certificates-do-not-conform-to-algorithm-constraints/m-p/692234#M80764</guid>
      <dc:creator>flakshack</dc:creator>
      <dc:date>2024-07-02T18:25:11Z</dc:date>
    </item>
  </channel>
</rss>

