msdeploy 得到 ERROR_CERTIFICATE_VALIDATION_FAILED,allowUntrusted 被忽略 [英] msdeploy getting ERROR_CERTIFICATE_VALIDATION_FAILED, allowUntrusted being ignored

查看:64
本文介绍了msdeploy 得到 ERROR_CERTIFICATE_VALIDATION_FAILED,allowUntrusted 被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 msdeploy 将网站代码推送到 4 个不同的服务器(测试和生产服务器).在前 3 个上工作正常,但第 4 个给了我一个 ERROR_CERTIFICATE_VALIDATION_FAILED 错误.我正在使用 -allowUntrusted 选项.

I am using msdeploy to push out website code to 4 different servers (test and production servers). Works fine on the first 3, but the 4th is giving me an ERROR_CERTIFICATE_VALIDATION_FAILED error. I am using the -allowUntrusted option.

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:iisApp="E:\workspace\testDeploy\outproject\_PublishedWebsites\<webfolder>" -dest:iisApp="mycompany.com",ComputerName="https://<hostip>:8172/MsDeploy.axd",UserName="<userid>",Password="****",AuthType="Basic" -allowUntrusted -enableRule:AppOffline -skip:objectName=filePath,absolutePath="^.*<webfolder>\\web.*\.config$|^.*mycompany\.com\\web.*\.config"

Error Code: ERROR_CERTIFICATE_VALIDATION_FAILED
More Infenter code hereormation: Connected to the remote computer ("<hostip>") 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.
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.

知道我错过了什么吗?

推荐答案

问题在于目标系统上的用户密码.

The problem was with the password for the user on the destination system.

我在另一篇文章中看到有人在 -dest 条目之前移动了 -allowUntrusted 标志.我试过了,我开始收到 ERROR_USER_UNAUTHORIZED 消息.输入的密码一切正常,但它以 * 字符开头,其中还有一个单引号.我为没有使用这些特殊字符的用户生成了一个新密码,并在远程系统上更改了它.之后,一切正常.

I saw on another post that someone moved the -allowUntrusted flag before the -dest entry. I tried that and I started getting a ERROR_USER_UNAUTHORIZED message. Everything was correct with the password as it was entered, but it started with an * character and also had a single quote in it. I generated a new password for the user that didn't use those special characters and changed it on the remote system. After that, everything worked fine.

我能够按照初始帖子中显示的方式运行命令,没有任何错误.

I was able to run the command as shown in the initial post without any error.

如果您收到 ERROR_CERTIFICATE_VALIDATION_FAILEDERROR_USER_UNAUTHORIZED 并且一切设置正确,请尝试更改目标系统上分配给用户的密码.似乎有些密码不起作用.

If you are getting a ERROR_CERTIFICATE_VALIDATION_FAILED or ERROR_USER_UNAUTHORIZED and everything is set up properly, try changing the password assigned to the user on the destination system. It would seem that some passwords just won't work.

这篇关于msdeploy 得到 ERROR_CERTIFICATE_VALIDATION_FAILED,allowUntrusted 被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆