"<p><strong>Prerequired knowledge :</strong> <a href="https://www.devbrains.tn/tutorials/jwt-authentication-part-1">JWT Authentication [Part 1] </a></p> <p>In this video we are going to implement jwt-authentication-bundle so we can generate a JWT token.</p> <p>You can find Some Documentation links here :</p> <p>LexikJWTAuthenticationBundle : <a href="https://github.com/lexik/LexikJWTAuthenticationBundle">Documentation</a></p> <p>1 - Command to generate secret key:</p> <pre> <code>openssl genrsa -out config/jwt/private.pem -aes256 4096</code> </pre> <p>2 - Commande to generate public key :</p> <pre> <code>openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem</code></pre> <p> </p>"