Skip to content

Instantly share code, notes, and snippets.

@tomedme
Created October 8, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomedme/11708852b7fc70d7bb7f4547d7ac1982 to your computer and use it in GitHub Desktop.
Save tomedme/11708852b7fc70d7bb7f4547d7ac1982 to your computer and use it in GitHub Desktop.
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/jwt_rsa_256.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/jwt_rsa_256.pub.pem
JWT_PASSPHRASE=94af4a52-08fc-11eb-adc1-0242ac120002
###< lexik/jwt-authentication-bundle ###
mkdir -p config/jwt
cd config/jwt
openssl genrsa -out jwt_rsa_256.pem 4096
openssl rsa -in jwt_rsa_256.pem -pubout -out jwt_rsa_256.pub.pem
chmod 644 *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment