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

john john Pter 320 Reputation points
2023-11-20T12:03:25.0733333+00:00

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?

Thanks

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

1 answer

Sort by: Most helpful
  1. Fabio Andrade 1,660 Reputation points Microsoft Employee
    2023-11-20T23:56:03.6933333+00:00

    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:

    https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal#option-2-testing-only--create-and-upload-a-self-signed-certificate

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.