Trying to set up OAuth2 with office 365. Once I save my settings I get the following error:

"URL 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/common/oauth2/v2.0/token"


  • KevinTheJedi replied to this.
  • Supplying a new cacert.pem file and pointing php.ini to use it, resolved this error.

    dschuett

    Seems like your local cURL cannot get the local issuer certificate for the login.microsoftonline.com domain. This can be due to many reasons so you'll need to do some googling.

    Cheers.

    dschuett

    Nice! Yea this is a weird issue; you'd think your install of cURL has the appropriate certificates but guess not 🤷‍♂️

    Cheers.

    14 days later

    Hi Guys,

    Is possible to explain how do you fix this issue?
    I'm using windows iis with osticket.

      BrunoLopes

      Visit the URL in the error and it should tell you possible resolutions. If all else fails do some googling!

      Cheers.

      2 months later

      Hi guys!
      I have the same error : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
      I have added the following to my php.ini file :

      [curl]
      ; A default value for the CURLOPT_CAINFO option. This is required to be an
      ; absolute path.
      ;curl.cainfo = "C:\Program Files\iis express\PHP\v8.0\extras\ssl\cacert.pem"

      and restarted IIS, but it still gives me the error

      OK, so i forgot to uncomment it 🙂
      Now am getting this :

      Unable to obtain Refresh Token

        PSC-IT

        Then you are probably not configuring something correctly. Make sure you are using v1.17 and latest build of plugin and follow the steps exactly as they are in the official docs.

        Cheers.

        3 months later

        Hi all, KevinTheJedi you were correct! Fresh plugin version and it worked a treat. Thank you so much for everything!! 😃

        Write a Reply...