Skip to content

Instantly share code, notes, and snippets.

@virtualhobbit
Created May 22, 2020 17:38
Show Gist options
  • Save virtualhobbit/ffc5483b163da776bca46cb4fbe7aba1 to your computer and use it in GitHub Desktop.
Save virtualhobbit/ffc5483b163da776bca46cb4fbe7aba1 to your computer and use it in GitHub Desktop.
# Install the certificate
certutil -f -p $certPass -ImportPfx $cert
# Retrieve the certificate details
Set-Location -Path cert:\LocalMachine\My
$myCert = Get-ChildItem | Where-Object { $_.Subject -match "\*.hobbitcloud.com" }
# Configure friendly name for Horizon
$tp = $myCert.Thumbprint
(Get-ChildItem -Path Cert:\LocalMachine\My\$tp).FriendlyName = "vdm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment