My FortRabbit set up is Professional Stack with PHP s2. It gives me 2 PHP servers. This brings the issue of how to persist Laravel Passport oauth-public and oauth-private key.
I've found the solution (https://github.com/laravel/passport/pull/683/files) and it works on my local machine (1 server setup only).
I copied the same PASSPORT_PUBLIC_KEY and PASSPORT_PRIVATE_KEY to FortRabbit env. I assume it would work, but it does not.
Things I've done:
- use raw public/private keys to .env
- use base64 encoded public/private keys to .env and decode them in config (as suggested by FortRabbit)
Both methods work both on my local machine, but not on FortRabbit servers. I always get an exception "InvalidArgumentException: It was not possible to parse your key, reason: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode"
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire