Random "Failed to enumerate SSL bindings, error code 234." error when deploying

With approximately every other release I’m receiving the error “Failed to enumerate SSL bindings, error code 234.”. If I try again a failed release it will work most of the times. Since it works sometimes, I now that the setup is correct but what could be the cause of this random failure?


Finding SSL certificate with thumbprint 458dbf44ac09226b913b49e88b4720b0aceaa4b1 Info 10:01:49
Found certificate: CN= Error 10:01:50
ForEach-Object : Cannot retrieve the dynamic parameters for the cmdlet. Failed Error 10:01:50
to enumerate SSL bindings, error code 234. Error 10:01:50
At C:\Octopus\Applications.Tentacle\Octopus.Tentacle\\Scripts\Octopu Error 10:01:50
s.Features.IISWebSite_BeforePostDeploy.ps1:52 char:72 Error 10:01:50

  • $wsbindings | where-object { $_.protocol -eq “https” } | foreach-object <<<< Error 10:01:50
    { Error 10:01:50
    • CategoryInfo : InvalidArgument: (:slight_smile: [ForEach-Object], Parameter Error 10:01:50
      BindingException Error 10:01:50
    • FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShe Error 10:01:50
      ll.Commands.ForEachObjectCommand Fatal 10:01:50
      PowerShell script returned a non-zero exit code: 1

I deliberately removed the CN in the above :slight_smile:

It seems that I need to manually delete the existing site before deploying, to remove the error. I could try to remove bindings in a PreDeploy.ps1 script, but I figure Octopus Deploy ought to handle this.

Hi Martin,

Is it possibly related to this issue?



Hi Paul

Yes, it was related to that issue. Thanks!