Search code examples
deploymentvisual-studio-2012ssl-certificatemsdeploy

Can no longer ignore certificate errors during publishing in VS2012


I've been using the MSDeploy publishing service from Visual Studio to publish my projects. The publishing URL is https://machinename.domain.com:8172/MsDeploy.axd. It worked fine in VS2010 -- I was able to check a checkbox that said ignore certificate errors. That box is no longer shown in VS 2012. I found a post indicating that I'm supposed to get prompted about whether to ignore certificate errors -- but I'm not and I can no longer publish my project. Any ideas?


Solution

  • Open your publish profile from /Properties/PublishProfiles/<Profile>.pubxml and add the following line within the PropertyGroup element:

    <AllowUntrustedCertificate>True</AllowUntrustedCertificate>