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
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 !!!