oauth-private.key does not exist or is not readable

Posted by

Error:

Unable to read key from file file:///opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/storage/oauth-private.key

Solution:

I think that this is due to Laravel Passport, you should try the following command:

I found the solution Solution: In config/app.php I had to comment these lines:

/*Laravel\Passport\PassportServiceProvider::class,
App\Providers\CodeGrantProvider::class,
Spatie\Permission\PermissionServiceProvider::class,*/

Than you need to migrate the whole database again, than uncomment this line:

And run php artisan passport:install my application keys weren’t working so I had to do:

php artisan config:clear
php artisan key:generate
php artisan config:clear

And then I could do run your project

Thanks!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x