question

PriyaSinha-9031 avatar image
0 Votes"
PriyaSinha-9031 asked MayankBargali-MSFT edited

Could not load the certificate private key. Please check the authentication certificate password is correct and try again

Hi Team,

I have a .pfx file and using this I can access an API through Postman. I am trying to implement the same using logic app but its giving me error :

Could not load the certificate private key. Please check the authentication certificate password is correct and try again

I tried some ways to work this out but none of this worked.
I tried to put Base64 of pfx file and the password of the pfx
Another thing that i tried it extracting the private key from pfx and in password field passing the key
I tried to save the base64 in text vault and accessing it through logic app
Also I tried below steps from MS docs :
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal#client-certificate-authentication

Have you ever encountered this issue and if so, how did you fix so.

Thanks

azure-logic-apps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @PriyaSinha-9031

As per the document if you use the cert mmc/PowerShell command, you might get this error that you have observed.
Please review the Client Certificate authentication section to verify if you are generating the encoded pfx file content as per the document and passing the right password for pfx file. I have tested the same and couldn't observe the same behavior.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.