unable to upload a self-signed certificate to our azure app registration

john john Pter 0 Reputation points

I have this script to generate a self-signed certificate:-

PS C:\Users\Administrator> New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -DnsName "SPGPIntegration-Test"                                                                               

PS C:\Users\Administrator> Export-PfxCertificate -cert Cert:\LocalMachine\my\99CE213D84E71DFFE4D34E970162C6D4D6201D25 -FilePath "C:\certificates\SPGPIntegration-Test.pfx" -Password $pwd


PS C:\Users\Administrator> Export-PfxCertificate -cert Cert:\LocalMachine\my\99CE213D84E71DFFE4D34E970162C6D4D6201D25 -FilePath "C:\certificates\SPGPIntegration-Test.crt" -Password $pwd

Then i tried to upload the generated .crt file inside the >> inside our azure app registration >> but got this error:-

enter image description here

so the error is saying to upload the crt file and i am doing so... any advice?


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,605 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Fabio Andrade 400 Reputation points Microsoft Employee

    Hi @john john Pter

    Thanks for reaching out to Microsoft Q&A.

    Microsoft strongly recommends using a "real" certificate rather than a self-signed one, but you should be fine using it for testing purposes.

    The documentation below has the details about creating the certificate, let me know if you can create and upload it after checking it:


    User's image