<?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: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4659857#M40352</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240861" data-lia-user-login="valeriospennato" class="lia-mention lia-mention-user"&gt;valeriospennato&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the response has addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2025 08:38:42 GMT</pubDate>
    <dc:creator>v-sdhruv</dc:creator>
    <dc:date>2025-05-04T08:38:42Z</dc:date>
    <item>
      <title>Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4621040#M40069</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm working on establishing a secure TLS connection between Power BI Report Server and a PostgreSQL database using Npgsql. I've installed Npgsql, but I'm uncertain if additional configurations are necessary to ensure a secure connection. Could anyone provide a step-by-step guide or share their experiences on setting up TLS certificates in this scenario? Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 22:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4621040#M40069</guid>
      <dc:creator>valeriospennato</dc:creator>
      <dc:date>2025-03-22T22:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4621048#M40070</link>
      <description>&lt;P&gt;Hi Valerio, great question !&lt;BR /&gt;Prerequisites :&lt;BR /&gt;- Power BI Report Server installed and configured&lt;BR /&gt;- PostgreSQL server with TLS (SSL) enabled&lt;BR /&gt;- Npgsql ADO.NET provider installed (should be version-compatible with Report Server and PostgreSQL)&lt;BR /&gt;- TLS certificate(s) on the PostgreSQL server&lt;BR /&gt;- Access to the client machine where Power BI Report Server is running&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;On your PostgreSQL server, ensure that TLS is enabled. This is typically done in the postgresql.conf and pg_hba.conf files:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;**postgresql.conf**
conf
ssl = on
ssl_cert_file = 'server.crt'
ssl_key_file = 'server.key'
ssl_ca_file = 'root.crt' -- (optional but recommended for client-side validation)


**pg_hba.conf**
conf
hostssl all all 0.0.0.0/0 cert&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Then, restart PostgreSQL.&lt;/P&gt;
&lt;P&gt;Then you need to verify taht the PostgreSQL certificates (server.crt, server.key, and optionally root.crt) are:&lt;BR /&gt;- In the PostgreSQL data directory (or specify absolute paths)&lt;BR /&gt;- server.key must be 600 permission (chmod 600 server.key)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In Power BI Report Server, when setting up a data source with Npgsql, use a connection string like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Host=your_postgres_server;Port=5432;Username=your_user;Password=your_password;Database=your_db;SSL Mode=Require;Trust Server Certificate=false;Root Certificate=c:\\certs\\root.crt&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 22 Mar 2025 23:02:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4621048#M40070</guid>
      <dc:creator>AmiraBedh</dc:creator>
      <dc:date>2025-03-22T23:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4623680#M40086</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240861" data-lia-user-login="valeriospennato" class="lia-mention lia-mention-user"&gt;valeriospennato&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You can use the above mentioned steps to set up a secure TLS connection between Power BI Report Server and PostgreSQL using Npgsql.&lt;/P&gt;
&lt;P&gt;In addition to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332696" data-lia-user-login="AmiraBedh" class="lia-mention lia-mention-user"&gt;AmiraBedh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you want to enforce client-side SSL verification:&lt;/P&gt;
&lt;P&gt;You can use-&lt;/P&gt;
&lt;P&gt;***********************************&lt;STRONG&gt;&lt;BR /&gt;ssl_verify_client = require&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;***********************************&lt;/P&gt;
&lt;P&gt;If you don’t have valid SSL certificates for your PostgreSQL server, you can generate self-signed certificates.&lt;/P&gt;
&lt;P&gt;To generate a self-signed certificate and private key (for testing purposes):&lt;/P&gt;
&lt;P&gt;***********************************&lt;STRONG&gt;&lt;BR /&gt;# Create a private key&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;openssl genpkey -algorithm RSA -out server.key&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;# Create a self-signed certificate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;openssl req -new -x509 -key server.key -out server.crt -days 365&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;***********************************&lt;/P&gt;
&lt;P&gt;Ensure the SSL certificates are valid, properly formatted, and correctly located in the postgresql.conf file.&lt;/P&gt;
&lt;P&gt;By following these steps, you should be able to set up a secure TLS connection between Power BI Report Server and PostgreSQL using Npgsql.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;The ones that are in bold are commands and it world be better if they are screenshots.&lt;/P&gt;
&lt;P&gt;I couldnt edit it in word thats why used notepad.&lt;/P&gt;
&lt;P&gt;But you can use these in place of them-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above information is helpful, please give us &lt;STRONG&gt;&lt;EM&gt;Kudos&lt;/EM&gt; &lt;/STRONG&gt;and mark the response as &lt;STRONG&gt;&lt;EM&gt;Accepted as solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ C Srikanth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 07:34:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4623680#M40086</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-03-25T07:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4644438#M40236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240861" data-lia-user-login="valeriospennato" class="lia-mention lia-mention-user"&gt;valeriospennato&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Following up to check whether you got a chance to review the suggestions given. If the issue still persists please let us know.&lt;BR /&gt;If our response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it.&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 07:09:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4644438#M40236</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-04-09T07:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4659857#M40352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1240861" data-lia-user-login="valeriospennato" class="lia-mention lia-mention-user"&gt;valeriospennato&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the response has addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 08:38:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4659857#M40352</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-04T08:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up TLS Between Power BI Report Server and PostgreSQL Using Npgsql</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4678811#M40530</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1240861" target="_blank"&gt;@valeriospennato&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the response has addressed your query, please&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 08:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Setting-Up-TLS-Between-Power-BI-Report-Server-and-PostgreSQL/m-p/4678811#M40530</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-04T08:39:00Z</dc:date>
    </item>
  </channel>
</rss>

