Invalid provider type specified. CryptographicException

前端 未结 2 2013
情话喂你
情话喂你 2020-12-11 17:16

I am trying to run the script GetAppConfigSettings.ps1 from Microsoft docs help setting up a Key Vault

The script contains the following

# **********         


        
相关标签:
2条回答
  • 2020-12-11 17:48

    Microsoft support helped me out with this line

    $myCertThumbprint = (New-SelfSignedCertificate -CertStoreLocation Cert:\CurrentUser\My
    -subject MyCert -KeyExportPolicy Exportable -NotAfter (Get-Date).AddYears(10) 
    -Type CodeSigningCert -KeySpec Signature).Thumbprint
    

    The AuthClientId and AuthCertThumbprint values I need for the HelloKeyVault app.config are created.

    The AuthClientId displays in the portal as the Application ID and is vissible in the Registered app settings.

    To get to it click Azure Active Directory -> App registrations Then click View all applications click on the application then settings

    To see the Thumbprint doe the same and then click Keys

    I can see AuthClientId

    0 讨论(0)
  • 2020-12-11 17:50

    Please use this sample to learn how to use Key Vault with DotNet and authenticate to Azure Active Directory with a Service Principal's Certificate https://github.com/Azure-Samples/key-vault-dotnet-quickstart

    0 讨论(0)
提交回复
热议问题