- Plesk Onyx for Windows
Unable to publish application via Web Deploy in Microsoft Visual Studio 2017. The following error is shown:
CONFIG_TEXT: Web deployment task failed. (Connected to the remote computer ("example.com") 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.)
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.
An invalid or default self-signed certificate is used for
IIS Web Management Service
on the publishing server for
Install SSL certificate on a domain in Plesk according to the article How to install SSL certificate for a domain in Plesk
If it is not possible to install any valid SSL certificate or self-signed certificate is enough, use the following workaround:
1. Retry to publish the application and Accept the not trusted certificate when the invitation window appears:
2. If it did not appear, invoke it by going to profile in Visual Studio > Publish > Settings > Validate Connection button.
Or add the following property to the
.publishsettingsfile exported from Plesk via steps from the article How to configure Visual Studio on a remote computer for Web Deploy?