I'm trying to publish ASP.NET web api project using web deploy and the following error occurs.
Web deployment task failed. (Connected to the remote computer ("xxxxx") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.)
- Imported the certificate from MSDeployServiceURL to Trusted Root Certification Authorities folder.
- I also tried to deploy from remote machine (xxxxx) for it's IIS instance and apparently it's not trusting it's own certificate either.
<AllowUntrustedCertificate>true</AllowUntrustedCertificate>
to the pubxml file.
Any suggestions to fix this?