Closed CvekCoding closed 7 months ago
Hi,
Have you installed GMP or BCMATH extension? https://github.com/web-token/jwt-framework/blob/3e87ce132f6cbeb228b6d4d9ad105dce395458d8/src/Library/composer.json#L57
Let me try...
You are right, now it works. I was sure that I had looked through all the hints in composer(
Thanks for fast response
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Version(s) affected
3.3
Description
Hello. I ran into a problem when creating tokens - the RSA signature takes an insanely long time to work, a few minutes. At the same time, other algorithms (I checked ES256) work fast. The problem is in the \Jose\Component\Core function\Util\RSAKey::populateBigIntegers. Very heavy mathematical operations are launched there, which take up all the time.
I am attaching my project with vanilla Symfony and a generated 4096 RSA key. jwt-token.tar.gz
How to reproduce
docker-compose up -d
docker compose exec php bin/console lexik:jwt:generate-token test
The project also contains es-signature, and it works blazing fast.
Possible Solution
No response
Additional Context
No response