Unable to build authorizer for Resource Manager API

When I try to connect azure using terraform with service principal id and certificate , I am getting below error ,
unable to build authorizer for Resource Manager API: could not configure ClientCertificate Authorizer: could not decode PKCS#12 archive: pkcs12: error reading P12 data: asn1: structure error: tags don’t match (16 vs {class:1 tag:3 length:58 isCompound:false}) {optional:false explicit:false application:false private:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} pfxPdu @2

I have referred the this document and followed the same
kindly help me to fix the issue

@yuvarajduraisamy1 have you found a solution?