Amit Manchanda
Amit Manchanda

Reputation: 195

Amazon GetSessionToken throws : A WebException with status TrustFailure was thrown

I am using amazon web apis to generate federated user credentials e.g. GetSessionToken. It's working fine on my localhost machine but throw error on live server . Any guesses?

Error throws: A WebException with status TrustFailure was thrown.

Upvotes: 1

Views: 1971

Answers (4)

Varun Bhatia
Varun Bhatia

Reputation: 11

check certificate settings installed on Production machine

Upvotes: 0

Liam
Liam

Reputation: 5486

I had a similar issue - is your date correct on your machine?

The AWS connection process will throw out the request if the date is wrong.

Upvotes: 1

Sifford
Sifford

Reputation: 329

I answered a very similar issue here . In my case, the server I was receiving the error on did not have the correct cert in its trusted root certificate authorities. Adding the correct cert resolved the issue.

Upvotes: 0

jarmod
jarmod

Reputation: 78842

That does not sound like an AWS exception. It sounds like an SSL/TLS issue related to certificates.

Upvotes: 1

Related Questions