【问题标题】:update SSL configurations using powershell使用 powershell 更新 SSL 配置
【发布时间】:2018-10-24 20:10:26
【问题描述】:

我使用以下内容添加了 SSL 证书:-

 New-AzureRmWebAppSSLBinding -WebAppName $app.SiteName -Thumbprint $new_thumbprint -Name $ssl_binding.Name -ResourceGroupName $app.ResourceGroup  

但我想知道是否:- 是否可以使用 powershell 更新 SSL 配置

我想做的是:-
1) 将“仅 https”更改为“开启”
2) 最低 TLS 版本为 '1.2'

使用 PS

【问题讨论】:

    标签: powershell azure ssl tls1.2


    【解决方案1】:

    我设法弄明白了。

    # SET staging
    $PropertiesObject = @{
        'httpsOnly' = 'true';
        'minTlsVersion' = '1.2'
    
    }
    Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName RG-AUTHSERVER -ResourceType Microsoft.Web/sites/slots -ResourceName "authserver-web/staging" -ApiVersion 2016-08-01 -Force
    # SET staging
    $PropertiesObject = @{
        'minTlsVersion' = '1.2'
    
    }
    Set-AzureRmResource -PropertyObject $PropertiesObject -ResourceGroupName RG-AUTHSERVER -ResourceType Microsoft.Web/sites/slots/config -ResourceName "authserver-web/staging/web" -ApiVersion 2016-08-01 -Force
    

    【讨论】:

      猜你喜欢
      • 2022-01-01
      • 2018-01-08
      • 2021-03-29
      • 2011-01-28
      • 2023-03-22
      • 1970-01-01
      • 2012-08-13
      • 2012-07-06
      • 2014-12-23
      相关资源
      最近更新 更多