1. Login to the Application Server and navigate to "ServiceDesk" folder (Installation directory).
3. Unzip and copy the "gencert.sh(.bat)" to "ServiceDesk" folder. Copy the "lib/cert.jar" to "ServiceDesk/lib/" folder.
4. Open command prompt and navigate to "ServiceDesk" folder.
5. Execute the command
./gencert.bat login.microsoftonline.com:443 (for windows)
sh gencert.sh login.microsoftonline.com:443 (for linux)
6. Once connected to the microsoft url, certificates will be listed as shown below:
7. Enter the number of the last certificate (Last one is the root certificate). It is "2" in the above image. After entering the number, press "Enter".
8. Now the root certificate will be downloaded and updated in the "jssecacerts" file in "ServiceDesk" folder.
9. Copy the file "jssecacerts" to "ServiceDesk/jre/lib/security" folder and restart the application service once.
10. The internal CA certificate for Authorization URL is loaded in the keystore. Try configuring Oauth now.