Hi!
I have a server hosting two environments (test and stage). Both environments are only available over HTTPS having two separate certificates from Let’s Encrypt (for specific domains test.mydomain.com and stage.mydomain.com).
The sites are separate IIS websites, single binding configured though Octopus.
Certificate thumbprints are configured through environment variables and bound with ‘Deploy application’ step.
Everything works just fine except deploying ‘test’ overrides certificate for ‘stage’ and vice versa (the binding itself stays correct, only certificate from another web-site is applied). The logfile warns about binding for the same ip/port but I’m not really sure what’s the problem, actually, since configuring the same bindings manually works just fine:
Making sure a Website “MySite-test” is configured in IIS…
October 18th 2018 19:21:43Info
Finding SSL certificate with thumbprint 83ce4f0516e8afb03e838b6425396c1c82133468
October 18th 2018 19:21:43Info
Found certificate: CN=test.mydomain.com in: WebHosting
October 18th 2018 19:21:44Info
A different binding exists for the IP/port combination, replacing…
October 18th 2018 19:21:44Info
SSL Certificate successfully deleted
October 18th 2018 19:21:44Info
SSL Certificate successfully added
October 18th 2018 19:21:44Info
Application pool “MySite-test” already exists
October 18th 2018 19:21:44Info
Set application pool identity: ApplicationPoolIdentity
October 18th 2018 19:21:45Info
Set .NET framework version: v4.0
October 18th 2018 19:21:46Info
Site “MySite-test” already exists
October 18th 2018 19:21:46Info
Application pool “MySite-test” already assigned to “IIS:\Sites\MySite-test”
October 18th 2018 19:21:46Info
Setting physical path of IIS:\Sites\MySite-test to D:\Octopus\Applications\test\MyCompany.MySite\2.0.43_1
October 18th 2018 19:21:46Info
Comparing existing IIS bindings with configured bindings…
October 18th 2018 19:21:46Info
Looks OK
October 18th 2018 19:21:46Info
Bindings are as configured. No changes required.
Any suggestions on what do I do wrong?
Thanks in advance