<?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>question DBCPConnectionPool 1.28.1 : Cannot create PoolableConnectionFactory (Certificates do not conform to algorithm constraints.) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-1-28-1-Cannot-create/m-p/412800#M253688</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a NiFi 1.28 instance running on a Oracle Linux Server 9.6. I'm trying to connect to a Microsoft SQL Server database using a&amp;nbsp;DBCPConnectionPool 1.28.1 controller, with a mssql-jdbc-13.2.1.jre11.jar driver, but I'm getting a very confusing error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Failed to establish Database Connection: java.sql.SQLException: Cannot create PoolableConnectionFactory ("encrypt" property is set to "false" and "trustServerCertificate" property is set to "true" but 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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what I've already tried to fix this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Import the self signed certificate&amp;nbsp;(from the database machine) into the $JAVA_HOME truststore&lt;BR /&gt;- change the default cypto policy with:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;update-crypto-policies --set DEFAULT:SHA1&lt;/PRE&gt;&lt;P&gt;- Relax the java security restrictions by going into the&amp;nbsp;java.security file and commenting the&amp;nbsp;jdk.certpath.disabledAlgorithms and&amp;nbsp;jdk.tls.disabledAlgorithms properties&lt;/P&gt;&lt;P&gt;- Tried accessing the database itself within the machine's terminal, which works just fine (so it is a NiFi issue)&lt;/P&gt;&lt;P&gt;- Tried connecting with the properties&amp;nbsp;encrypt=false;trustServerCertificate=true; on the connection string and all of it's 3 variations (true/true, true/false and false/false)&lt;/P&gt;&lt;P&gt;Is this a known issue or am I missing a configuration? Any help is appreciated and I'm down to answering any questions to help solve this issue. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 11:34:50 GMT</pubDate>
    <dc:creator>enguias</dc:creator>
    <dc:date>2025-10-31T11:34:50Z</dc:date>
    <item>
      <title>DBCPConnectionPool 1.28.1 : Cannot create PoolableConnectionFactory (Certificates do not conform to algorithm constraints.)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-1-28-1-Cannot-create/m-p/412800#M253688</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a NiFi 1.28 instance running on a Oracle Linux Server 9.6. I'm trying to connect to a Microsoft SQL Server database using a&amp;nbsp;DBCPConnectionPool 1.28.1 controller, with a mssql-jdbc-13.2.1.jre11.jar driver, but I'm getting a very confusing error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Failed to establish Database Connection: java.sql.SQLException: Cannot create PoolableConnectionFactory ("encrypt" property is set to "false" and "trustServerCertificate" property is set to "true" but 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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what I've already tried to fix this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Import the self signed certificate&amp;nbsp;(from the database machine) into the $JAVA_HOME truststore&lt;BR /&gt;- change the default cypto policy with:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;update-crypto-policies --set DEFAULT:SHA1&lt;/PRE&gt;&lt;P&gt;- Relax the java security restrictions by going into the&amp;nbsp;java.security file and commenting the&amp;nbsp;jdk.certpath.disabledAlgorithms and&amp;nbsp;jdk.tls.disabledAlgorithms properties&lt;/P&gt;&lt;P&gt;- Tried accessing the database itself within the machine's terminal, which works just fine (so it is a NiFi issue)&lt;/P&gt;&lt;P&gt;- Tried connecting with the properties&amp;nbsp;encrypt=false;trustServerCertificate=true; on the connection string and all of it's 3 variations (true/true, true/false and false/false)&lt;/P&gt;&lt;P&gt;Is this a known issue or am I missing a configuration? Any help is appreciated and I'm down to answering any questions to help solve this issue. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 11:34:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-1-28-1-Cannot-create/m-p/412800#M253688</guid>
      <dc:creator>enguias</dc:creator>
      <dc:date>2025-10-31T11:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: DBCPConnectionPool 1.28.1 : Cannot create PoolableConnectionFactory (Certificates do not conform to algorithm constraints.)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-1-28-1-Cannot-create/m-p/412809#M253693</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123332"&gt;@enguias&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes this error could be for an old algorithm such as SHA-1. And most possible if using Java 11 that is more strict with the policies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option is to use connection without TLS, if possible and acceptable in your environment:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;jdbc:sqlserver://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;;databaseName=&amp;lt;DB&amp;gt;;encrypt=disable&lt;/LI-CODE&gt;&lt;P&gt;Or, update the certificate to SHA-256 with TLS 1.2.&amp;nbsp;&lt;BR /&gt;This is the best option if you prefer to maintain the encryption.&amp;nbsp;&lt;BR /&gt;Maybe this documentation from SQL can help too:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-sql-server-encryption?view=sql-server-ver17" target="_blank"&gt;https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-sql-server-encryption?view=sql-server-ver17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 16:29:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-1-28-1-Cannot-create/m-p/412809#M253693</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-11-04T16:29:07Z</dc:date>
    </item>
  </channel>
</rss>

