MS Graph API Certificate Issue

ACA 0 Reputation points
2024-10-01T11:16:10.0366667+00:00

I use the MS Graph API to connect with my Teams Chat, but currently the certificate will not be approved and I get following error: {"error":{"code":"ValidationError","message":"HttpRequestException:An error occurred while sending the request. WebException:The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. AuthenticationException:The remote certificate is invalid according to the validation procedure. ","innerError":{"date":"2024-09-30T16:24:35","request-id":"ff84c630-4449-4c5e-858c-4ba3ffb85b03","client-request-id":"ff84c630-4449-4c5e-858c-4ba3ffb85b03"}}} Maybe you can help me? I already change my certificate, but it does not work.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,226 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 42,211 Reputation points
    2024-10-02T11:19:50.7233333+00:00

    Hi @ACA

    There is a similar issue here. See if this solution helps you:

    • The API needs to go to some service, website. Enter this and click on the url and go to the certificate that is an option in the browser. You can download.
    • Enter the server with error and import this certificate into the server's certificates.
    0 comments No comments

  2. Dev User 0 Reputation points
    2024-10-08T10:22:03.96+00:00

    did you find a solution to above? i'm facing the same issue with Graph API. I can't import the cert into Microsoft servers even if I have uploaded the cert in my App Registration, so what is the alternative?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.