We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ECDH does not work in PHP 8.1
Run phpunit under PHP 8.1
1) ECDH_AESKeyWrapTest::testECDHES_A128KW Undefined array key "crv" /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:287 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:91 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/ECKey.php:189 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:190 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:149 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH_AESKeyWrap.php:75 /home/runner/work/simplejwt/simplejwt/tests/ECDH_AESKeyWrapTest.php:58 2) ECDH_AESKeyWrapTest::testECDHES_A192KW Undefined array key "crv" /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:287 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:91 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/ECKey.php:189 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:190 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:149 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH_AESKeyWrap.php:75 /home/runner/work/simplejwt/simplejwt/tests/ECDH_AESKeyWrapTest.php:77 3) ECDH_AESKeyWrapTest::testECDHES_A256KW Undefined array key "crv" /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:287 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/Key.php:91 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Keys/ECKey.php:189 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:190 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH.php:149 /home/runner/work/simplejwt/simplejwt/src/SimpleJWT/Crypt/ECDH_AESKeyWrap.php:75 /home/runner/work/simplejwt/simplejwt/tests/ECDH_AESKeyWrapTest.php:95
This is occurring because in PHP 8.1, openssl exports EC keys in PKCS#8 format instead of RFC 5915 format, and ECKey does not recognise the new format
ECKey
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
ECDH does not work in PHP 8.1
Steps to reproduce
Run phpunit under PHP 8.1
Backtrace
Additional information
This is occurring because in PHP 8.1, openssl exports EC keys in PKCS#8 format instead of RFC 5915 format, and
ECKey
does not recognise the new formatThe text was updated successfully, but these errors were encountered: