Post

2 followers Follow
0
Avatar

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

When I attempt to connect to our sandbox environment, I get the error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" in my API call.  I can simply switch the URL I'm connecting to from https://app.clarizentb.com to https://app2.clarizen.com and all is good, but when I switch back, I get the error.

Ed Dierker Answered

Please sign in to leave a comment.

7 comments

0
Avatar

Hi Ed,

I suggest you use https://api.clarizentb.com (API, not APP)

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

Hi Ed,

That's quite weird, as the certificate for https://api.clarizentb.com is valid. I tested some api calls with it yesterday.

You may have some organizational network issues with that address, perhaps your network security engineers can assist. 
Did you try to access that address from outside of your organizational network?

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

I can access the site directly from the machine in question using a browser (Chrome), but not through the API

Ed Dierker 0 votes
Comment actions Permalink
0
Avatar

Hi Ed,

Does this error occur when you call GetServerDefinition or Login?

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

on the login request.  I don't call GetServerDefinition since I already know the server we're on. . .

Ed Dierker 0 votes
Comment actions Permalink
0
Avatar

Hi Ed,

No issues I know of in Clarizen's side, just tried it again and it worked. Are you using some kind of proxy server/software? (Even Fiddler can cause that kind of issue...)

I'd suggest you add a call to GetServerDefinition, maybe that can give us some more information. It's also the best practice as your actual server may change some time in the future. 

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink