Replies: 1 comment
-
Same here. Can't generate key. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
php artisan webpush:vapid
RuntimeException
Unable to create the key
at vendor\web-token\jwt-library\Core\Util\ECKey.php:96
92▕ 'curve_name' => self::getOpensslCurveName($curve),
93▕ 'private_key_type' => OPENSSL_KEYTYPE_EC,
94▕ ]);
95▕ if ($key === false) {
➜ 96▕ throw new RuntimeException('Unable to create the key');
97▕ }
98▕ $result = openssl_pkey_export($key, $out);
99▕ if ($result === false) {
100▕ throw new RuntimeException('Unable to create the key');
1 vendor\web-token\jwt-library\Core\Util\ECKey.php:70
Jose\Component\Core\Util\ECKey::createECKeyUsingOpenSSL("P-256")
2 vendor\web-token\jwt-library\KeyManagement\JWKFactory.php:72
Jose\Component\Core\Util\ECKey::createECKey("P-256", [])
Beta Was this translation helpful? Give feedback.
All reactions