Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Maciek_1000
Frequent Visitor

Power BI cannot establish secure connection to the PostgreSQL database

Hi,

I'm trying to establish secure connection to the database (PostgreSQL). However when I try to do this, I'm getting back info that 

Power BI can't connect to the data source using secure connection and instead of that it will do this using non-encrypted one. It's crucial for me to have it secure.

 

How can I manage this? This is not MS SQL database but PostgreSQL.

 

And the second one - what does it exactly mean that this connecction is not encrypted?

 

Thank you for your help

1 ACCEPTED SOLUTION
Maciek_1000
Frequent Visitor

I've manage to connect securely with the server using certificate generated from the server. I've installed it on my computer following this instructions.

https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-l...

 

In my case it had to be a Trusted Root Certification Authorities.

View solution in original post

4 REPLIES 4
Maciek_1000
Frequent Visitor

I've manage to connect securely with the server using certificate generated from the server. I've installed it on my computer following this instructions.

https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-l...

 

In my case it had to be a Trusted Root Certification Authorities.

This worked for me, thanks!

amitchandak
Super User
Super User

@Maciek_1000 , Power bi will connect only SSL enabled Postgresql.

 

Please do not miss any of the steps mentioned in the solutions

https://community.powerbi.com/t5/Power-Query/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/td-p/135666
https://dataintoresults.com/post/powerbi-and-postgresql-ssl-lets-encrypt-and-gateway/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak  for your suggestion. I've managed to connect to the database with Power BI connector. But I wanted to connect securely. That means that it's not impossible to connect without encryption.

 

I'm trying to get through the solution to import certificate to windows. I'm waiting for the certificate to be provided from my PostgreSQL database administrator and I'll see if it's capable.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors