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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ashrafkotb
Helper I
Helper I

SSL connection error when connecting to localhost

Hello,

 

I'm trying to connect to a local REST API installed on my machine. When I try to connect to:

https://localhost:5000/v1/api/

 

I get an error as:

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

 

Any clues on how to solve this, since this is only a local server address?

 

Regards,

Ash

7 REPLIES 7
Vishnu1995
Helper I
Helper I

@ashrafkotb Did you ever manage to solve this issue?

Syndicate_Admin
Administrator
Administrator

How do I manage to solve this? I'm having the same problem, in my case I have something like this:
https://mi_certificado/module/list
but I'm getting this error:
DataSource.Error: Connection terminated: Unable to establish trust relationship for ssl/TLS secure channel.

try changing to "File->Options and Settings->Options->Security->Certificate >None (option selected)"
but nothing.

PhilipTreacy
Super User
Super User

Hi @ashrafkotb 

I'd expect your internet security/anti-virus/anti-malware to be intercepting and checking HTTP traffic and they often insert their own self signed SSL certificates.  If PBI doesn't like this it may throw an error.  Try turning off the security software just to test.  You may need to configure the security software firewall to ignore connections from local sources and/or to port 5000 on your PC.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


v-deddai1-msft
Community Support
Community Support

Hi @ashrafkotb ,

 

Did you add the cerrificate  of REST API to trusted root store on the server or it is is self-signed? Please follow the steps in https://success.outsystems.com/Support/Enterprise_Customers/Installation/Add_self_signed_certificate...  to Add  certificate to trusted root store.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Hi Dedmon,

Yes, this was the first thing I tried. However, still getting the same error. I suspect it might be something related to Kaspersky Internet Security.

lbendlin
Super User
Super User

use a http connection, not https .  Note that this is not a good idea in general.

I tried that. Didn't connect at all.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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