Azure Service Principal Client Certificate Error


we are trying to use a service principal and a client certificate as an authentication method to terraform azurerm, but we are facing some issues with the certificate we already generated,
this is the error shown below:

The Client Certificate Path is not a valid pfx file: pkcs12: unknown digest algorithm: 2.16.840.

Can you please help with that issue,

Kind Regards,