Modify Web Portal Bindings on Portal Cert Expiry

operations

#1

Hi,
Is there a way to modify the Web Portal Bindings without removing and adding them via the wizard?
The use cases is related to management following Octopus portal certificates that expired. We have a new certificate on the server but not sure how to update the bindings in Octopus Deploy to replace the expired cert….

Thanks


(Daniel Fischer) #3

Hi,

Thanks for getting in touch! When you use the Octopus manager to manually modify the web portal bindings you are presented with the script which Octopus will run to apply your changes.

I believe the best option here would be to start to perform your modifications using the Octopus Manager UI, then select to “Show script” instead of “Apply”

This will give you something like the following:

"C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe" ssl-certificate --instance "OctopusServer" --ip-address "0.0.0.0" --port "443" --thumbprint "351D306A1591BF5A3CE02BA6DEADFDF90A8DCE54" --certificate-store "My"
"C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe" configure --instance "OctopusServer" --webForceSSL "True"
"C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe" configure --instance "OctopusServer" --webListenPrefixes "http://octopushost/,http://localhost/,https://test/"
"C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe" service --instance "OctopusServer" --stop --start

Note. The above script was for a dummy run on my local VM and the values will change when you show the script on your end.

With this you can simply run or edit the script however you need.

Let me know if this helps or if you have any further questions or thoughts here. :slight_smile:

Best regards,
Daniel