Getting error 401 when accessing JIRA API (OAuth 1.0)

Hello, I am facing some 401 errors when accessing JIRA REST API from a custom PHP Laravel APP.

root@32cde58b717d:/var/www/app# php artisan company:import-jira-tasks
2023-04-28 07:46:58 Importing from Jira…
[2023-04-28 19:46:58] production.ERROR: Guzzle\Http\Exception\ClientErrorResponseException [0] : /var/www/app/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php [Line 43] => Client error response [status code] 401 [reason phrase] Unauthorized [url]

Client error response
[status code] 401
[reason phrase] Unauthorized

After reading this documentation [] I was able to access it from my machine using:
java -jar OAuthTutorialClient-1.0.jar request [url]

THen I reproduced all steps on my VPS (environment variables) to use new tokens and CERT but now I am getting this error:

openssl_sign(): supplied key param cannot be coerced into a private key

Can anyone help me?


Hi @RicardoSouza ,

Welcome to the Atlassian Developer Community.

Unfortunately, I don’t think you’ve provided enough information about how your making the request. Are you able to provide a simplified version of your source code that demonstrates the issue? If so, I think you will have a better chance of someone helping you out.