<?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: Connection to PostgreSQL Database fails in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309196#M80432</link>
    <description>&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I tried this way too but I still have the same problem​ of mismatching common name and hostname.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 08:20:13 GMT</pubDate>
    <dc:creator>EGarouachi</dc:creator>
    <dc:date>2020-11-26T08:20:13Z</dc:date>
    <item>
      <title>Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309194#M80430</link>
      <description>&lt;P&gt;I'm trying to make a connection to a &lt;B&gt;PostgreSQL database &lt;/B&gt;which is located in a &lt;B&gt;remote serve&lt;/B&gt;r using &lt;B&gt;Talend Open Studio for Big Data &lt;/B&gt;v7.3.1 the problem is that the server requires SSL certificates. I tried many ways but It still fails. Here are the connection strings that I tried and the log errors in TOS BD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With SSL mode disabled&amp;nbsp;&lt;B&gt;jdbc:postgresql://xx.xx.xx.xx:5432/dbName?ssl=true&amp;amp;sslfactory=org.postgresql.ssl.NonValidatingFactory&amp;amp;sslmode=disable :&lt;/B&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;Exception in component tDBConnection_1 (DB_Connection)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;org.postgresql.util.PSQLException: FATAL: pg_hba.conf rejects connection for host "my.ip.address.here", user "user", database "databasename", SSL off&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Without specifying SSL mode ( default mode)&amp;nbsp;&lt;B&gt;jdbc:postgresql://xx.xx.xx.xx:5432/dbName?ssl=true&amp;amp;sslfactory=org.postgresql.ssl.NonValidatingFactory :&lt;/B&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;org.postgresql.ssl.PGjdbcHostnameVerifier verify&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;GRAVE: Server name validation failed: hostname xx.xx.xx.xx does not match common name xxxxx&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Exception in component tDBConnection_1 (DB_Connection)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;org.postgresql.util.PSQLException: The hostname xx.xx.xx.xx could not be verified by &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;hostnameverifier PgjdbcHostnameVerifier&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I omit SSL parameters part in the connection like this&amp;nbsp;&lt;B&gt;jdbc:postgresql://xx.xx.xx.xx:5432/dbName?&lt;/B&gt;&amp;nbsp;it asks for a valid client certificate.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB:I can connect to the database using the pgadmin the problem is with Talend open Studio.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309194#M80430</guid>
      <dc:creator>EGarouachi</dc:creator>
      <dc:date>2024-11-16T01:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309195#M80431</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here is a KB article about: &lt;A href="https://community.talend.com/s/article/Three-ways-to-set-a-truststore-for-an-SSL-TLS-connection-in-a-Job-zc7CW" alt="https://community.talend.com/s/article/Three-ways-to-set-a-truststore-for-an-SSL-TLS-connection-in-a-Job-zc7CW" target="_blank"&gt;Three ways to set a truststore for an SSL/TLS connection in a Job&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know if it is what you are looking for?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 03:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309195#M80431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-26T03:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309196#M80432</link>
      <description>&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I tried this way too but I still have the same problem​ of mismatching common name and hostname.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 08:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309196#M80432</guid>
      <dc:creator>EGarouachi</dc:creator>
      <dc:date>2020-11-26T08:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309197#M80433</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here is an article about: &lt;A href="https://stackoverflow.com/questions/55545924/how-to-solve-the-error-connection-could-not-be-allocated-because-the-hostname" alt="https://stackoverflow.com/questions/55545924/how-to-solve-the-error-connection-could-not-be-allocated-because-the-hostname" target="_blank"&gt;https://stackoverflow.com/questions/55545924/how-to-solve-the-error-connection-could-not-be-allocated-because-the-hostname&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 11:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309197#M80433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-27T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309198#M80434</link>
      <description>&lt;P&gt;thank you but the solution was to put the certificates locations in the connection string with specifying the ssl mode :&lt;/P&gt;&lt;P&gt;&lt;B&gt;ssl=true&amp;amp;sslmode=prefer&amp;amp;sslcert=DirectoryToSslCertificates/client.crt&amp;amp;sslkey=DirectoryToSslCertificates/clientkey.pk8&amp;amp;sslrootcert=DirectoryToSslCertificates/root.crt&lt;/B&gt;&lt;/P&gt;&lt;P&gt;(dont forget to change the certificates formats with openssl commands,I had .pem files) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 12:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309198#M80434</guid>
      <dc:creator>EGarouachi</dc:creator>
      <dc:date>2020-11-27T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connection to PostgreSQL Database fails</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309199#M80435</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for sharing your solution with us.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 05:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connection-to-PostgreSQL-Database-fails/m-p/2309199#M80435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-30T05:31:38Z</dc:date>
    </item>
  </channel>
</rss>

