WebDeploy 发布:远程证书在几次后失效......*尽管*反复接受它
WebDeploy Publish: The remote certificate goes invalid after a few time... *despite* of accepting it repeatedly
上下文
我正在使用 VS 2019 WebDeploy 发布。我确实知道服务器证书不受信任的用例,所以我使用 [Validate Connection](见下图)按钮解决了这个问题,但只用了几次,或者提前几分钟...... 之后我得到了网络发布错误。
注意: 有趣的是,当我单击 [验证连接] 时,它从不要求我信任,而只是用 1-2 的绿色复选标记标记秒。也许几个月前它问过,但从那以后什么都没有...
所以在获得绿色复选标记后,我可以成功发布,但是几次或几分钟后,我又收到了认证错误:
Connected to the remote computer ("myserver.westeurope.cloudapp.azure.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.
Publish failed to deploy.
问题
如何永久信任该证书?
展览
好像是这条线
<TimeStampOfAssociatedLegacyPublishXmlFile />
在 publish.xml.user 隐藏文件中。
上下文
我正在使用 VS 2019 WebDeploy 发布。我确实知道服务器证书不受信任的用例,所以我使用 [Validate Connection](见下图)按钮解决了这个问题,但只用了几次,或者提前几分钟...... 之后我得到了网络发布错误。
注意: 有趣的是,当我单击 [验证连接] 时,它从不要求我信任,而只是用 1-2 的绿色复选标记标记秒。也许几个月前它问过,但从那以后什么都没有...
所以在获得绿色复选标记后,我可以成功发布,但是几次或几分钟后,我又收到了认证错误:
Connected to the remote computer ("myserver.westeurope.cloudapp.azure.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. Publish failed to deploy.
问题
如何永久信任该证书?
展览
好像是这条线
<TimeStampOfAssociatedLegacyPublishXmlFile />
在 publish.xml.user 隐藏文件中。