Oauth2-server: "oauth-public.key" permissions are not correct, should be 600 or 660 instead of 666

Created on 18 Aug 2017  路  5Comments  路  Source: thephpleague/oauth2-server

When I try my code in my WAMP installation this error is always returned and I can't change this file permission. Can you check if is windows or if its localhost? And disable in this case?

Thanks

Most helpful comment

You can try this,
$privateKey = new CryptKey('file://path/to/private.key', null, false);

This problem has been fixed from PR #776

All 5 comments

You can try this,
$privateKey = new CryptKey('file://path/to/private.key', null, false);

This problem has been fixed from PR #776

Thanks @fuadmuhtaz but I can't disable the check in Laravel Passport plugin.
I changed it in my local vendor package

Make sure you use laravel/passport version ^3.0.1

They already fixed it https://github.com/laravel/passport/pull/454

Thanks! Update solve my problem.
I use "laravel/passport": "~4"

Closing issue as bug has been fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webmake picture webmake  路  7Comments

alessandroraffa picture alessandroraffa  路  5Comments

johannesschobel picture johannesschobel  路  4Comments

arjundas picture arjundas  路  8Comments

JasonTheAdams picture JasonTheAdams  路  6Comments