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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tonyk86
Helper I
Helper I

Postgres OBDC SSL Issue

Hi,

  I'm having an issue with an OBDC connection. I've created (through PBI Desktop) and published to PBI service using various flat files and an external OBDC connection to a postgres database. For my OBDC connection, I just use the following OBDC connection string: 

 

Driver={PostgreSQL Unicode(x64)}; Server=XX.XX.XX.XX; Port=5432; Database=XXXX

 

The connection has worked perfectly fine for a few months until I received a connection error today.

tonyk86_0-1696524880052.png

After researching, I was just told by my one of the admins that they switched over to SSL recently for that database. With that information, I figured I would just add ";sslmode=require" to the end of the string

Driver={PostgreSQL Unicode(x64)}; Server=XX.XX.XX.XX; Port=5432; Database=XXXX;;sslmode=require;

 

However adding this string gives me a FATAL: connection requires a valid client certificate error message. How do I fix this issue? Any help is appreciated. Thanks!

 

tonyk86_1-1696525067910.png

 

1 REPLY 1
amitchandak
Super User
Super User

@tonyk86 , Please check and do not miss any step. Or create  a dataflow on power bi service and use that as source

 

postgresql
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/

https://niftit.com/connecting-power-bi-to-postgresql/

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.