Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command line to generate public and private keys using lexik:jwt:… #1920

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

Ak1r0
Copy link
Contributor

@Ak1r0 Ak1r0 commented Mar 17, 2024

…generate-keypair

In the doc for JWT Authentication there's this command line to use with the docker install :

docker compose exec php sh -c '
    set -e
    apk add openssl
    php bin/console lexik:jwt:generate-keypair
    setfacl -R -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt
    setfacl -dR -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt

The command line use apk add openssl but apk is not found in the container.

I changed it for apt-get install openssl and it works perfectly :)

Cheers

@dunglas dunglas merged commit a449c6e into api-platform:3.2 Mar 17, 2024
1 check passed
@dunglas
Copy link
Member

dunglas commented Mar 17, 2024

Good catch, we recently switched from Alpine to Debian, that's why this change is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants