user3865527
user3865527

Reputation: 61

SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists on VSTS

I am implementing continuous deployment with VSTS, I configure my website with HTTP & HTTPS bindings with a certificate installed on my server. When I run the deploy suite and start the creation of the website I am getting this error:

SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists.

The site does not exist and the certificate configured for https binding it is installed on the server. I don't know why the process is trying to create the certificate, is there a way to tell VSTS to use an existing certificate?

For more information I have configured an IIS Web App Manage with EnableIIS option enabled with Create or Update action, add binding option enabled and SSL certificate thumbprint configured from Thumbprint on details options.

This is my server configuration:

Thank you.

Upvotes: 6

Views: 10088

Answers (2)

Hadi R.
Hadi R.

Reputation: 413

If you have recently renewed your ssl certificate, go through this article, you have to add your new certificate hash thumbprint to the binding step in your pipeline.

Upvotes: 6

Zachary Dow
Zachary Dow

Reputation: 1947

I was trying to bind two different https websites to two different certificates. I used Server Name Indication (SNI) to fix this issue.

Related ServerFault question

Upvotes: 5

Related Questions