Forum Discussion
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
- PhilipTreacySuper 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
- lbendlinSuper User
use a http connection, not https . Note that this is not a good idea in general.
- ashrafkotbHelper I
I tried that. Didn't connect at all.
- v-deddai1-msftCommunity 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_trusted_root_store_on_OutSystems 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
- ashrafkotbHelper I
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.
- Syndicate_AdminAdministrator
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. - Vishnu1995Helper I
ashrafkotb Did you ever manage to solve this issue?