Export an Azure App Service Certificate Using Kudu PowerShell

By Pradip Shrestha

j

28/12/2019

How to open Kudu PowerShell console

You can open Kudu Powershell console using the following:

1. If your Azure Web app URL is https://mysite.azurewebsites.net/, then the URL of the Kudu will be https://mysite.scm.azurewebsites.net/ . Once authenticated, you can see a similar screen, as shown in figure 2.0, if Azure App Service is running on Windows.

2. In the left panel of the App Service, click on Advanced Tools and then click on Go link, as shown on figure 1.0.

azure-app-service-blade

Figure 1.0: App Service blade

This will open the Kudu site of your App Service in a new window. On the Debug console menu, click on PowerShell to open the Kudu PowerShell console, as shown in figure 2.0.

kudu-powershell-console

Figure 2.0: The Kudu Service page.

Run the following PowerShell cmdlets to export the certificate.

Get-ChildItem -Path cert:\localmachice\my | Select-Object –first 1 | Export-Certifactte
              -FilePath D:\home\site\wwwroot\cert.cer –Force

cmdlet-to-export-the-certificate

Figure 3.0: PowerShell cmdlets to export the certificate.

Then you can download the .cer extension file from the specified path.

You can see the following articles for reference:

Related Post

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Share This