Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LogicException in CryptKey.php line 44: Laravel

Tags:

laravel-5.3

I followed the documentation and configured Laravel Passport as mention here https://laravel.com/docs/5.3/passport

but am getting the error

Key path "file://C:\wamp64\www\blog\storage\oauth-public.key" does not exist or is not readable

like image 352
Jagadesha NH Avatar asked Aug 26 '16 06:08

Jagadesha NH


3 Answers

For users using wamp on windows, download openssl from https://code.google.com/archive/p/openssl-for-windows/downloads and extract it. Add the path /bin to environment variables and then run

php artisan passport:install
like image 154
Jagadesha NH Avatar answered Oct 19 '22 11:10

Jagadesha NH


I had that error too, If you are on windows the command

php artisan passport:keys

needs openssl program, If you using xampp, then you already have that program on

C:\xampp\apache\bin

so add that path to system variables "if you need help with that just comment, I'll help you" after adding it run the command

php artisan passport:keys

and make sure that it worked by looking in your storage folder, you should find the missing .key files

like image 24
Amr Alaa Avatar answered Oct 19 '22 12:10

Amr Alaa


If you are on a Mac OS then go to the terminal and make sure you are in your directory. The best steps to do are the following:

  • composer update
  • php artisan migrate
  • php artisan passport:install
like image 1
Kevin Ripley Avatar answered Oct 19 '22 11:10

Kevin Ripley