Created
October 27, 2020 14:17
-
-
Save gowatana/bd16ed6a3493c349cdff01b08bb93c82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get HAProxy CA Cert. | |
# Usage: | |
# PS> Connect-VIServer $vCenter_Address -Force | |
# PS> ./get_haproxy_vm_cacert.ps1 $ha_proxy_vm_name | |
$VMname = $args[0] | |
$AdvancedSettingName = "guestinfo.dataplaneapi.cacert" | |
$Base64cert = Get-VM $VMname | Get-AdvancedSetting -Name $AdvancedSettingName | |
$cert = [Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($Base64cert.Value)) | |
$cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
https://vm.gowatana.jp/entry/2020/11/16/085441