Fix: Web deploy - could not verify the server certificate

Fix for "Web deployment task failed. (Connected to the remote computer ("xxx") 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.

commit 9d7a95b · authored · 1 min read

Fix: Web deploy - could not verify the server certificate

Today when I tried to deploy my new ASP.NET CORE 2 app to SmarterASP.NET, the deployment failed with a message

Web deployment task failed. (Connected to the remote computer (“xxxxxxxxx”) 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.

I got the publish profile from the SmarterASP.NET control panel and when I opened the PublishSettings using VS Code, it had AllowUntrustedCertificate=“True” which I imported to the project but when I checked the Publish Profile under my project ( Project > Properties > xxx.pubxml), there was no entry of AllowUntrustedCertificate.

So, in order to fix the issue, inside PropertyGroup just added

<AllowUntrustedCertificate>True</AllowUntrustedCertificate>

That solved the issue with web deploy.

local graph · open full graph

"Fix: Web deploy - could not verify the server certificate" is connected to the topics Visual Studio, Hosting, ASP.NET Core and related to 6 other entries. ASP.NET Core - OAuth 2.0 Client Access Token Management ASP.NET Core - OAuth 2.0 Cl… ASP.NET Core - Using Mutliple Authentication Schemes ASP.NET Core - Using Mutlip… Serilog - Console Sink Themes Serilog - Console Sink Them… Best Visual Studio Extensions Best Visual Studio Extensio… Azure DevOps - GatsbyJs Build Pipeline Azure DevOps - GatsbyJs Bui… Azure DevOps Build - Could not locate the assembly Azure DevOps Build - Could … Visual Studio #visual-studio Hosting #hosting ASP.NET Core #aspnet-core Fix: Web deploy - could not verif…

comments

loading discussion…