This file contains hidden or 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
function FindTlsThumbprintToUse | |
{ | |
param( | |
[String]$VariableName = "TlsThumbprint" | |
) | |
$thumbprint = Get-ChildItem -Path cert:\LocalMachine\My\* -EKU "Server Authentication" | | |
Where-Object { | |
# The last where, for -eq $true helps avoid returning a null object in some cases. | |
$_.DnsNameList -and ($_.DnsNameList.punycode.endswith(".yourtlddomain.here") | Where-Object { $_ -eq $true }) |
This file contains hidden or 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
# Try it in powershell... | |
[Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Newtonsoft.Json.dll") | |
[Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Octopus.Client.dll") | |
[Reflection.Assembly]::LoadFile("C:\Program Files\Octopus Deploy\Tentacle\Octopus.Platform.dll") | |
# Basic data | |
Write-Host "Setup..." | |
$octoKey=" Your API Key" | |
$octoUser=" Your user name" | |
$octoId=" Your deployment id, ie (deployments-1492)" |