Key file Permissions are not correct, should be 600 or 660 Instead of 644

Asked

Viewed 60 times

-1

The error returned is as follows: Key file Permissions are not correct, should be 600 or 660 Instead of 644 Can anyone help me solve this error ? I know I have to change to 600 or 644 , but I do not know how

  • You are using a Unix/linux system?

1 answer

0

You need to change to 600, no 644. Only the user running the web server must have access to these keys.

Start by changing the key property for the user running your server. Go to the folder where your application root is and run the following:

$ chown <usuario_do_servidor_web> storage/oauth-private.key storage/oauth-public.key

If you use Apache and haven’t changed the settings on Ubuntu or variants, the user is usually www-data, but check your settings to inform the correct user.

  • C: www Laravel aapiVeiculos>chown <usuario_do_servidor_web> Storage/oauth-private.key Storage/oauth-public.key The system cannot find the file specified.

  • Ah, you use Windows. In this case I don’t know how I can help you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.