Need to add additional details here. This is the set of logs for the script that is executed:
| Success: Octopus.Features.IISWebSite_BeforePostDeploy.ps1
17:04:32 Verbose | Running PowerShell script: C:\Program Files\Octopus Deploy\Tentacle\Scripts\Octopus.Features.IISWebSite_BeforePostDeploy.ps1
17:04:33 Info | Finding SSL certificate with thumbprint { cert thumbprint }
17:04:33 Info | Found certificate: CN=*.adaptgift.com, OU=EssentialSSL Wildcard, OU=Domain Control Validated
17:04:33 Info | Application pool "AdaptGift Manage" already exists
17:04:33 Info | Set application pool identity: SpecificUser
17:04:34 Info | Set .NET framework version: v4.0
17:04:36 Info | Site "AdaptGift Manage" already exists
17:04:36 Info | Assigning website to application pool...
17:04:36 Info | Home directory: C:\Octopus\Applications\Staging\Adapt.Gift.Web.Host\0.0.65.0-Staging
17:04:38 Info | Assigning bindings to website...
17:04:38 Info | Binding: http *:80:manage-stage.adaptgift.com
17:04:38 Info | Binding: https *:443:manage-stage.adaptgift.com {cert thumbprint}
17:04:40 Info | Anonymous authentication enabled: True
17:04:41 Info | Basic authentication enabled: False
17:04:42 Info | Windows authentication enabled: False
17:04:44 Info | IIS configuration complete
but when it’s coming through, and i go into IIS admin, it’s changing all my sites on this host to use the *.adaptgift.com certificate, and not just the site being deployed.