Laravel 在postman中测试Oauth时,无法解析密钥

Laravel 在postman中测试Oauth时,无法解析密钥,laravel,postman,laravel-passport,Laravel,Postman,Laravel Passport,我在做Oauth护照的工作。它在我以前的电脑上运行得很好,但我不得不切换机器。我的新机器有PHP8,我的Laravel项目是7.30.0版本,我的lcobucci/jwt版本是3.3.3。当我试图点击邮递员上的注册路径时,我收到以下错误消息 InvalidArgumentException:无法解析您的密钥,原因:在文件中 C:\xampp\htdocs\ccvtlicensing\ccvt licensing\vendor\lcobucci\jwt\src\Signer\OpenSSL.php

我在做Oauth护照的工作。它在我以前的电脑上运行得很好,但我不得不切换机器。我的新机器有PHP8,我的Laravel项目是7.30.0版本,我的lcobucci/jwt版本是3.3.3。当我试图点击邮递员上的注册路径时,我收到以下错误消息

InvalidArgumentException:无法解析您的密钥,原因:在文件中
C:\xampp\htdocs\ccvtlicensing\ccvt licensing\vendor\lcobucci\jwt\src\Signer\OpenSSL.php
在线90
#0 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\lcobucci\jwt\src\Signer\OpenSSL.php(47):
Lcobucci\JWT\Signer\OpenSSL validateKey(对象(OpenSSLasSymmetKey))
#1 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\lcobucci\jwt\src\Signer\OpenSSL.php(21):
Lcobucci\JWT\Signer\OpenSSL getPrivateKey('----BEGIN RSA…',
空)
#2 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\lcobucci\jwt\src\Signer\BaseSigner.php(36):
Lcobucci\JWT\Signer\OpenSSL createHash('EYJ0EXAIIOIJKV1Q…',
对象(Lcobucci\JWT\Signer\Key))
#3 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\lcobucci\jwt\src\Builder.php(470):
Lcobucci\JWT\Signer\BaseSigner签名('EYJ0EXAIIOIJKV1Q…',
对象(Lcobucci\JWT\Signer\Key))
#4 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\lcobucci\jwt\src\Builder.php(450):
Lcobucci\JWT\Builder createSignature(数组,
对象(Lcobucci\JWT\Signer\Rsa\Sha256),
对象(Lcobucci\JWT\Signer\Key))
#5 C:\xampp\htdocs\ccvtclicensing\ccvt licensing\vendor\league\oauth2 server\src\Entities\Traits\AccessTokenTrait.php(41):
Lcobucci\JWT\Builder-getToken()
#6 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\league\oauth2 server\src\ResponseTypes\BearerTokenResponse.php(28):
Laravel\Passport\Bridge\AccessToken convertToJWT(对象(League\OAuth2\Server\CryptKey))
#7 C:\xampp\htdocs\ccvtclicensing\ccvt licensing\vendor\league\oauth2 server\src\AuthorizationServer.php(202):
League\OAuth2\Server\ResponseType\BealerTokenResponse generateHttpResponse(对象(Zend\Diactoros\Response))
#8 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\passport\src\PersonalAccessTokenFactory.php(114):
League\OAuth2\Server\AuthorizationServer响应AccessTokenRequest(对象(Zend\Diactoros\ServerRequest),
对象(Zend\Diactoros\Response))
#9 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\passport\src\PersonalAccessTokenFactory.php(71):
Laravel\Passport\PersonalAccessTokenFactory dispatchRequestToAuthorizationServer(对象(Zend\Diactoros\ServerRequest))
#10 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\passport\src\HasApiTokens.php(67):
Laravel\Passport\PersonalAccessTokenFactory make(32,“MyApp”,
阵列)
#11 C:\xampp\htdocs\ccvtclicensing\ccvt licensing\app\Http\Controllers\API\CCVTController.php(48):
App\CCVTPassport createToken('MyApp')
#12 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\Controller.php(54):
App\Http\Controllers\API\CCVTController寄存器(对象(照亮\Http\Request))
#13 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\ControllerDispatcher.php(45):
照亮\路由\控制器调用动作('寄存器',数组)
#14 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\light\Routing\Route.php(239):
照明\路由\控制器Dispatcher调度(对象(照明\路由\路由),
对象(App\Http\Controllers\API\CCVTController),'register')
#15 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\light\Routing\Route.php(196):
照亮\Routing\Route-runController()
#16 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\Router.php(685):
照亮\路由\路由-运行()
#17 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Pipeline\Pipeline.php(128):
照亮\路由\路由器照亮\路由\{closure}(对象(照亮\ Http\请求))
#18 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\light\Routing\Middleware\SubstituteBindings.php(41):
照亮\Pipeline\Pipeline照亮\Pipeline\{closure}(对象(照亮\Http\Request))
#19 C:\xampp\htdocs\ccvtclicensing\ccvt licensing\vendor\laravel\framework\src\illumb\Pipeline\Pipeline.php(167):
Illumb\Routing\Middleware\SubstituteBindings句柄(对象(Illumb\Http\Request),
对象(关闭))
#20 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\Middleware\ThrottleRequests.php(59):
照亮\Pipeline\Pipeline照亮\Pipeline\{closure}(对象(照亮\Http\Request))
#21 C:\xampp\htdocs\ccvtclicensing\ccvt licensing\vendor\laravel\framework\src\illumb\Pipeline\Pipeline.php(167):
Illumb\Routing\Middleware\ThrottleRequests句柄(对象(Illumb\Http\Request),
对象(闭包),60,'1')
#22 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Pipeline\Pipeline.php(103):
照亮\Pipeline\Pipeline照亮\Pipeline\{closure}(对象(照亮\Http\Request))
#23 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\Router.php(687):
照亮\管道\管道(对象(闭合))
#24 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\light\Routing\Router.php(662):
照亮\路由\路由器runRouteWithinStack(对象(照亮\路由\路由),
对象(照亮\Http\Request))
#25 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illusted\Routing\Router.php(628):
照亮\路由\路由器运行路由(对象(照亮\ Http\请求),
对象(照明\路由\路由))
#26 C:\xampp\htdocs\ccvt licensing\ccvt licensing\vendor\laravel\framework\src\illumb\Routing\Router.php(617):
照亮\路由\路由器调度路由(对象(Illu)