简体   繁体   中英

Export Azure App Service Certificate as .pfx on Mac

What is the easiest way to export an Azure App Service Certificate on Mac? All results seem to point to Powershell - I have attempted to install Powershell on Mac via PowerShell Core, though I have experienced a large amount of authentication issues, namely with the Connect-AzureRmAccount command:

Connect-AzureRmAccount : Object reference not set to an instance of an object.
At line:1 char:1
+ Connect-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : CloseError: (:) [Connect-AzureRmAccount], NullReferenceException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

Help would be appreciated.

Answering my own question.

1. Install Powershell with brew:

brew cask install powershell

2. Verify that your install is working properly:

pwsh

3. Execute the powershell script found here: https://blogs.msdn.microsoft.com/benjaminperkins/2017/04/12/export-an-azure-app-service-certificate-pfx-powershell/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM