Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

How to resolve ERROR_CERTIFICATE_VALIDATION_FAILED issue

$
0
0

I am trying to make a SECURED deploy using this command line - 
Package.deploy.cmd /y /M:https://XXXXXX:8172/MSDeploy.axd /U:"UserName" /p:"Password" /a:basic

But when I execute this, I get an error ERROR_CERTIFICATE_VALIDATION_FAILED

<div id="imcontent" dir="ltr">Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Error: The remote certificate is invalid according to the validation procedure.
</div>

This error is resolved when below command line is used - 
Package.deploy.cmd /y /M:https://XXXXXX:8172/MSDeploy.axd /U:"UserName" /p:"Password" /a:basic -AllowUntrusted -verbose 

I DONT want to use allowUntrusted certificates, userName and Password, as it can be seen in my TFS logs. I want to pass appropriate certificates in above command line to make a secured deploy. Also, need to avoid providing User/Pass

Any help would be of great help !!!


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>