1

我在 laravel 中开发了 API,然后将其部署在 ec2 AWC 实例中。我正在使用 xampp。现在,每当我想通过从邮递员发送请求来获取令牌时,它都会给我这样的错误。但是当我在我的电脑上测试时它确实有效。

InvalidArgumentException: It was not possible to parse your key, reason:  in file /opt/lampp/htdocs/AAPi/vendor/lcobucci/jwt/src/Signer/OpenSSL.php on line 90

#0 /opt/lampp/htdocs/AAPi/vendor/lcobucci/jwt/src/Signer/OpenSSL.php(47): Lcobucci\JWT\Signer\OpenSSL->validateKey(Object(OpenSSLAsymmetricKey))
#1 /opt/lampp/htdocs/AAPi/vendor/lcobucci/jwt/src/Signer/OpenSSL.php(21): Lcobucci\JWT\Signer\OpenSSL->getPrivateKey('-----BEGIN RSA ...', NULL)
#2 /opt/lampp/htdocs/AAPi/vendor/lcobucci/jwt/src/Signer/BaseSigner.php(36): Lcobucci\JWT\Signer\OpenSSL->createHash('eyJ0eXAiOV1Q...', Object(Lcobucci\JWT\Signer\Key))
4

0 回答 0