I don’t have VS to test with, but this thread from Stack Overflow looks promising
The option to allow untrusted certificates is not yet supported in the current tooling. Hopefully, this gets updated very soon. You can, however, set it manually.
- Open the publish profile file (
.pubxml ) inside /Properties/PublishProfiles in a text editor
- Inside the
<PropertyGroup> element, set AllowUntrustedCertificate to True (
<AllowUntrustedCertificate>True</AllowUntrustedCertificate> ) or add it if it doesn’t exist
- Set UsePowerShell to False (
At this time of writing, the generated powershell script disregards the
AllowUntrustedCertificate property which is probably a bug, hence, the need to set it to
You can get powershell to work if you update the module version in the
As a side note, you can also get around this problem by “trusting” the server’s certificate locally.