简体   繁体   English

在 BizTalk 2020 中禁用证书验证

[英]Disable certificate validation in BizTalk 2020

Can anyone tell me how to disable certificate revocation list validation in BizTalk.谁能告诉我如何在 BizTalk 中禁用证书吊销列表验证。

Here is the scenario:这是场景:

I have configured a BizTalk 2020 native FTP receive port that communicate to a client via FTPS Implicit mode.我已经配置了一个 BizTalk 2020 本机 FTP 接收端口,该端口通过 FTPS 隐式模式与客户端进行通信。 When the port is connecting to the FTPS server I get the error "The certificate is revoked".当端口连接到 FTPS 服务器时,我收到错误“证书已吊销”。 I want the BizTalk or port so ignore this certificate and not validate it, so how do I configure BizTalk 2020 FTP port to ignore certificate validation?我想要 BizTalk 或端口,因此忽略此证书而不对其进行验证,那么如何配置 BizTalk 2020 FTP 端口以忽略证书验证?

I have checked list list without no help: Known Issues with Certificates in BizTalk Server我在没有帮助的情况下检查了列表列表: BizTalk Server 中证书的已知问题

I have also tried to add config setting in the BizTalk server config without luck!我还尝试在 BizTalk 服务器配置中添加配置设置,但没有成功!

Although not recommended outside testing and development scenarios, you can disable the revocation-check through .NET's System.Net.ServicePoint class using the static ServicePointManager class.尽管不建议在外部测试和开发方案中使用,但您可以使用静态 ServicePointManager 类通过 .NET 的 System.Net.ServicePoint 类禁用吊销检查。

You can configure this in BizTalk's host-process application config file (BtsNtSvc.exe.config) with the downside that it would affect all 32-bit host-instances in this case.您可以在 BizTalk 的主机进程应用程序配置文件 (BtsNtSvc.exe.config) 中进行配置,但缺点是在这种情况下它会影响所有 32 位主机实例。

<system.net>
  <settings>
    <servicePointManager checkCertificateRevocationList="false" />
  </settings>
</system.net> 

An alternative, and probably better, approach would be to create a BizTalk pipeline-component using something like this:另一种可能更好的方法是使用以下内容创建 BizTalk 管道组件:

public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
{
    System.Net.ServicePointManager.CheckCertificateRevocationList = false;
    return pInMsg;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM