Error while calling api using https from xamrin andriod app

yadavdep used Ask the Experts™
We have xamarin based mobile application and an API which is made in core hosted in windows azure.

Till last week we have been using an http url for calling the api in the mobile application. for example
Everything was working right.

This week we changed to
Since then when we build the android app on the actual device we getting this error.

"System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner android native xamarin"

Not sure what is causing this error but till now we did not find a solution
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
from a browser go to your api endpoint address and check for error messages .... mismatched or invalid certificate errors spring to mind

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial