Hi @codeninja12 ,
You need to create self signed certificate if you are using azure app. You can refer to the document to upload certificate. So I will recommend you to grant access using SharePoint App-Only. grant permission to your client id by steps and then you can get bearer token by https://login.microsoftonline.com/---/oauth2/v2.0/token
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.