Automate SAML-based SSO app configuration with MS Graph- Signing certificate configuration problem

El Ghali Benchekroun 26 Reputation points
2020-07-15T09:19:10.213+00:00

Hello,

I'm trying to use MS Graph in order to automate SAML-based SSO app configuration. I'm currently exploring this tutorial: https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/application-saml-sso-configure-api but I have a problem when I configure my signing certificate. I generate my own certificate but I don't know how to retrieve programmatically (with python script or powershell) my public and private key from the pfx file. And then, when I try to do it, it always sends me an error message: Invalid Key...

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,689 questions
{count} vote

Accepted answer
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-07-15T10:59:48.9+00:00

    @EIGhaliBenchekroun-6065, Thank you for reaching out. Are you following the exact code for PowerShell present in that article?

    As that script helps in creating a self signed certificate first and then it exports the private key (as .pfx file) and public key (as .cer file). For the test purpose, you can also export the private key manually and then check if the export works or not.

    If that fails, will have to dig deeper to understand why the cert creation is failing. But ideally I have personally followed that script and it works for me.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful