本文介绍了带私钥的BizTalk Server 2013 FTP适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 您好, 我们要求将FTP安全站点与私钥和下载文件连接起来。但是,我注意到没有选项可以在FTP适配器接收器端口中添加私钥。   开箱即用的FTP适配器是否支持私钥验证?  我也尝试使用SFTP适配器,但它出现以下错误, 消息传递引擎无法添加接收位置"接收位置3"。 URL"sftp://ftp.xxxx.com:22 //*.*"到适配器"SFTP"。原因:"Microsoft.BizTalk.Adapter.SftpInvoker.SftpException:打开SFTP连接错误。     at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.Open()     at Microsoft.BizTalk.Adapter.Sftp.SftpConnection.OpenUnderlyingConnection(SftpConnectionProperties connectionProperties)     at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.ConnectionPool`3.GetConnection(T1 connectionProperties,TimeSpan timeout)     at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.GetConnection(T connectionProperties,TimeSpan timeout)     at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.ValidateConfiguration(SftpReceivePropertyBag receivePropertyBag)     at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.CreateBinding(RHConfig rhConfig)     at Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime()     at System.ServiceModel.ServiceHostBase.OnBeginOpen()     at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()     at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext,IBTTransportProxy transportProxy,ControlledTermination control)     at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url,IPropertyBag adapterConfig,IPropertyBag bizTalkConfig)"。 在此问题上感谢您的帮助。 Prabath 解决方案 我认为你需要连接到FTP / S服务器。 事实上,FTP / S和SFTP根本不同,除了"FTP"之外甚至不相关。在名称中。 FTP / S基本上是基于SSL的FTP,与http使用的SSL相同,对于FTPS,适配器只使用Windows证书基础设施。 那么,您需要获取服务器的公钥并将其添加到本地证书存储区。 这是一个描述该过程的博客: http://blogical.se/blogs/mikael/archive/2010/09/26/how-to-use-the-new-ftps-adapter-with-biztalk-2010.aspx Hello,We have a requirement to connect FTP secure site with the private key and download files. However  i noticed that there is no option to add private key in FTP Adapter Receiver Port.  Is Out of the box FTP adapter support for private key authentication?.   i tried with SFTP adapter also but it gives the following error, The Messaging Engine failed to add a receive location "Receive Location3" with URL "sftp://ftp.xxxx.com:22//*.*" to the adapter "SFTP". Reason: "Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open SFTP connection error.   at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.Open()   at Microsoft.BizTalk.Adapter.Sftp.SftpConnection.OpenUnderlyingConnection(SftpConnectionProperties connectionProperties)   at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.ConnectionPool`3.GetConnection(T1 connectionProperties, TimeSpan timeout)   at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.GetConnection(T connectionProperties, TimeSpan timeout)   at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.ValidateConfiguration(SftpReceivePropertyBag receivePropertyBag)   at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.CreateBinding(RHConfig rhConfig)   at Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime()   at System.ServiceModel.ServiceHostBase.OnBeginOpen()   at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)".Appreciate your helps on this issue.Prabath 解决方案 I take it you need to connect to an FTP/S server.  FTP/S and SFTP are fundamentally different, in fact, not even related other than "FTP" in the name.FTP/S is basically FTP over SSL, the same SSL as http would use so for FTPS, the Adapter just uses the Windows Certificate infrastructure.So, what you need to get the server's public key and add it to the local certificate store.Here's a blog that describes the process: http://blogical.se/blogs/mikael/archive/2010/09/26/how-to-use-the-new-ftps-adapter-with-biztalk-2010.aspx 这篇关于带私钥的BizTalk Server 2013 FTP适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-22 12:00