TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
229 stars 108 forks source link

openssl_sign(): Supplied key param cannot be coerced into a private key #195

Open dandice9 opened 11 months ago

dandice9 commented 11 months ago

Hi, i have some issue with getting access token. I think i've uploaded correct certificate and using private key from that cert. someone having same issue? currently I'm using 2.2.1 version

[2023-08-10 03:46:38] production.ERROR: error: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'openssl_sign():...', '/Users/dan...', 225)
#1 /cms/vendor/firebase/php-jwt/src/JWT.php(225): openssl_sign('eyJ4NXQiOiJwTTV...', '', 'MIIEvQIBADANBgk...', 'SHA256')
#2 /cms/vendor/firebase/php-jwt/src/JWT.php(195): Firebase\JWT\JWT::sign('eyJ4NXQiOiJwTTV...', 'MIIEvQIBADANBgk...', 'RS256')
#3 /cms/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php(140): Firebase\JWT\JWT::encode(Array, 'MIIEvQIBADANBgk...', 'RS256', NULL, Array)