Passport: ErrorException : file_put_contents(/secret-keys/oauth/oauth-public.key): failed to open stream: No such file or directory

Created on 10 Sep 2019  路  4Comments  路  Source: laravel/passport

vendor/laravel/passport/src/Console/KeysCommand.php:46
42| $this->error('Encryption keys already exist. Use the --force option to overwrite them.');
43| } else {
44| $keys = $rsa->createKey($this->input ? (int) $this->option('length') : 4096);
45|

46| file_put_contents($publicKey, Arr::get($keys, 'publickey'));
47| file_put_contents($privateKey, Arr::get($keys, 'privatekey'));
48|
49| $this->info('Encryption keys generated successfully.');
50| }

Exception trace:

1 file_put_contents("/secret-keys/oauth/oauth-public.key", "-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvAtqvkM6jyZyptx1IEnc
MSiPPBXw2iJWtgqUTQlJZD4Ty3T+CveOSRrzQQAUN/dQMWHMqq7/Px93fmrBnC54
0EHCzA65wNaREk81KsxioB5NMV4La/wmzjDypJZI2PQkXZMsu0oRhu+MnZZfTlPE
YrtlEKjhLcfvMaayRTESZZ9BCI7EXoZAdeuYWI8LwJe0JOeTznGB5u79X2PJZvY7
7ASgqNbthC1cpq1GZiBfmSFhtas/kgD7I8HmHcne3TYIaVSnCO5ba0Wx0rcz/2iO
9hnvnpkg6AMaERRAf3JPAYNyEwMPUNzjmb1HswQMPDRitkD3L9iuv/B7Vs1dOemK
+ch+iUolpErhQ38AUJBqyigawFkFFg9YB8VvgMJm2AxMeDarG9dZbPhLXhOVB6wN
W9rLcEgpuuIOeRu+1y+pY0+vF36s+yS+nZUbcZ1tyfsqyxW39vxOtYx8qVGoEpKq
zU4kVt0i5RbsO0OXnh68Nz2WdX543i35uLIWEDdQgQbII+GW1K3C07EGkcVbfbt4
nlV1TbJyGu8GGbzXuY4uFGpOP6E2rL0UhRSsa476tpprr5jKwmUAaqZ723Ot2h8X
QjANw96+WlugsUUwVWPpgbQ44usY6Uz4eYiyHUXxo45rVqXSxPPcESqh+4lVOX2v
kQY0vfmY7EjQj+y2eQDfNWUCAwEAAQ==
-----END PUBLIC KEY-----")

All 4 comments

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

@apachish Did you solve the issue?

@apachish Did you solve the issue?

yes , problem my config

what was the problem in your config? i am having the same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adesubomi picture Adesubomi  路  4Comments

s4uron picture s4uron  路  3Comments

raksrivastava picture raksrivastava  路  3Comments

mind-control picture mind-control  路  3Comments

Patskimoto picture Patskimoto  路  3Comments