Skip to content

Storing public/private key in .env for Laravel 5.8+ #997

Closed
@rennokki

Description

@rennokki

I am currently running Laravel app on a multi-node infra and i cannot keep the keys locally, i need to find a way to centralize 'em.

Since 5.8, Laravel got shipped with https://github.com/vlucas/phpdotenv/releases/tag/v3.0.0 - support for multi-line .env, i think that would be a great choice to load the public & private keys from variables in the .env file:

PASSPORT_PUBLIC_KEY="------BEGIN PUBLIC KEY-----MJNHFGBASIYEYRA..."
PASSPORT_PRIVATE_KEY="-------BEGIN RSA PRIVATE KEY-----ASFOANasdara..."

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions