在Mac上将Azure应用服务证书导出为.pfx

时间:2018-08-23 10:49:53

标签: azure powershell

在Mac上导出Azure应用服务证书的最简单方法是什么? 所有结果似乎都指向Powershell-我尝试通过PowerShell Core在Mac上安装Powershell,尽管我遇到了大量身份验证问题,即使用Connect-AzureRmAccount命令:

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

我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

回答我自己的问题。

1。使用brew安装Powershell:

brew cask install powershell

2。验证安装是否正常运行:

pwsh

3。执行以下位置的powershell脚本: https://blogs.msdn.microsoft.com/benjaminperkins/2017/04/12/export-an-azure-app-service-certificate-pfx-powershell/

相关问题