TheNetworg/oauth2-azure

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

dandice9 opened this issue · 1 comments

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)

Did you manage to resolve this?