Error while calling api using https from xamrin andriod app

yadavdep
yadavdep used Ask the Experts™
on
We have xamarin based mobile application and an API which is made in asp.net 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 http://api.xxx.com
Everything was working right.

This week we changed to https://api.xxx.com.
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
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