Skip to content

Commit 9dbd69b

Browse files
vidarlmnocon
andauthored
Added instructions on how to generate PEM keypair, needed by JWT authentication (#2812)
* Added instructions on how to generate key pair for JWT authentication * Apply suggestions from code review Co-authored-by: Marek Nocoń <[email protected]> --------- Co-authored-by: Marek Nocoń <[email protected]>
1 parent f4b4b03 commit 9dbd69b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/infrastructure_and_maintenance/security/development_security.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,17 @@ security:
145145
entry_point: lexik_jwt_authentication.jwt_token_authenticator
146146
stateless: true
147147
```
148+
149+
Finish the setup by generating a [PEM encoded key pair](https://symfony.com/bundles/LexikJWTAuthenticationBundle/2.x/index.html#generate-the-ssl-keys) by using the command:
150+
151+
```bash
152+
php bin/console lexik:jwt:generate-keypair
153+
```
154+
155+
The generated key pair will be stored in the `config/jwt`directory.
156+
157+
!!! note "[[= product_name_cloud =]]"
158+
159+
To generate and store the tokens on [[= product_name_cloud =]], define the `config/jwt` directory as a volume in the `.platform.app.yaml` file.
160+
In 3-node cluster setups, ensure that the key pair is the same on all 3 servers.
161+
You can use a network share, or use a local mount and manually copy the key pair between the servers.

0 commit comments

Comments
 (0)