IIS Website - Create

Hi everyone,

I have a problem when creating a website. If the website binds with http, everything works fine. But if I add ssl binding to the step, it always return:
Validating paramters…
Web Site Name: Services
Application Pool Name: Services
Protocol: https
Port: 443
SSL Thumbprint: 89A21DB9E4EC1146EE76A2F6B3228FEC6F016ACA
IIS Authentication: Anonymous
Relative Home Directory: C:\inetpub\Sites\Services
Finding SSL certificate with thumbprint 89A21DB9E4EC1146EE76A2F6B3228FEC6F016ACA
Found certificate: CN=*.L150.local
Attempt 1 of 5 failed: Cannot create a file when that file already exists
Waiting for 2 seconds before retrying…
Info 15:45:41
Retrying…
Attempt 2 of 5 failed: Cannot create a file when that file already exists
Waiting for 2 seconds before retrying…
Info 15:45:44
Retrying…
Attempt 3 of 5 failed: Cannot create a file when that file already exists
Waiting for 2 seconds before retrying…
Info 15:45:46
Retrying…
Attempt 4 of 5 failed: Cannot create a file when that file already exists
Waiting for 2 seconds before retrying…
Error 15:45:47
Failed to execute command
Error 15:45:47
At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\56f426d
Error 15:45:47
d-c1fe-4fda-ad56-69e7b65c6e9c.ps1:62 char:8
Error 15:45:47

  •             throw "Failed to execute command"
    

Error 15:45:47

  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Error 15:45:47
+ CategoryInfo : OperationStopped: (Failed to execute command:Str
Error 15:45:47
ing) [], RuntimeException
Error 15:45:47
+ FullyQualifiedErrorId : Failed to execute command
Info 15:45:48
Retrying…
Info 15:45:48

PowerShell exit code: 1

Fatal 15:45:48
PowerShell script returned a non-zero exit code: 1
Tentacle version 2.6.2.845

I have checked that there is no duplicated IP and Port bind with other website. And if I am able to create the website manually in IIS with exactly same settings. Any ideas?

Thanks

Kevin

Hi Kevin,

Thanks for getting in touch.

I’ve been staring at this log for a while now, there’s something really strange.

The output generated by the script that’s shipped since 2.5.12 and up should have said "Found certificate: CN=*.L150.local in " and your cert store name. So there’s something up there.
That error is usually called when we call netsh http add sslcert, but we always log something else between finding the cert and calling that.

Are you able to post your raw logs from the deploy ?

Also, if you go on to the server and do “netsh http show sslcert” it will give you a list of all the bindings, if you can look at that and / or post it we can try to see if there are any clashes.

Regards

Damian