0
votes

I have created a clone of a server and it is giving me this error when I am deploying the code through VSTS:

Error Code: ERROR_CERTIFICATE_VALIDATION_FAILED 2018-04-16T08:15:26.6941482Z More Information: Connected to the remote computer ("abc.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. 2018-04-16T08:15:26.6942141Z Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. 2018-04-16T08:15:26.6942420Z Error: The remote certificate is invalid according to the validation procedure. 2018-04-16T08:15:26.6942538Z Error count: 1.

Certificates are properly installed and valid.

2
Where does your server located? And can you share the detail logs by setting system.debug variable as true? - Marina Liu
Try to deploy the app through WinRM IIS Web app Deployment task and check the result. - starian chen-MSFT

2 Answers

0
votes

Add the -allowUntrusted option to MSDeploy command line

0
votes

The issue was resolved. The issue was that the routing is not configured properly and it was trying to deploy on another server(say server 2) form which it was cloned. That's why I was getting the invalid certificate issue for server 1 because it was checking the certificates of server 2. Thank you all for your help. I appreciate it :)