Use pfx certificate to get Microsoft Entra token – Error: secretOrPrivateKey must be an asymmetric key when using RS256
I tried different ways to get an Azure AD token using a pfx certificate.
But the code below is persistently returning this error:
Error: secretOrPrivateKey must be an asymmetric key when using RS256