Error getting access token: cURL error 60

André vieira 5 Reputation points
2023-10-18T23:01:24.12+00:00

hi,
my company asked me to developed a php web application that uses the microsoft graph api(for some sort of meeting inviting), but I've been facing a lot of issues, such as confusing documentation. My first question is, how do I generate the token I need to use in the application? I already have the following parameters:

  Display name: Teste
    Application (client) ID: xxxx-xxx-xxxxxxxxxxxxxx
    Object ID: xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Directory (tenant) ID: xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx
    Client secret value: xxxx~xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Client secret ID: xxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

What else do I need besides that?

============================

the second is, I've been following this documentation:
https://learn.microsoft.com/pt-br/graph/tutorials/php-app-only?tabs=aad&tutorial-step=3

but, I got this error after the 2nd step(image attached):
Error getting access token: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://login.microsoftonline.com/4c7eb97d-7d42-4246-9eae-e9621e9ba93d/oauth2/v2.0/token

Can you please help us?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.