SFTP连接器配置(SFTP Connector Configuration)

我有要求使用SFTP将文件发送给外部供应商。 为此,我们将不得不下载客户端证书和密钥。 我们使用Mule EE 3.6.2是否可以在SFTP出站中配置SSL客户端,就像我们使用SFTP连接器处理http一样。 我在SFTP连接器文档中找不到任何东西。 谢谢。

问候,哈里

I have a requirement to send a file to an external vendor using SFTP. For that we will have to download a client certificate and a key. We are using Mule EE 3.6.2 Is it possible to configure a SSL Client in SFTP Outbound as we do with http utilizing the SFTP connector. I couldn't find anything in the SFTP connector documentation. Thanks.

Regards, Hari

最满意答案

您可以使用identityFile和它的关联passphrase配置SFTP连接器

<sftp:endpoint name="get-file" host="${sftp.host}" port="${sftp.port}" path="${sftp.path}" user="${sftp.username}" responseTimeout="10000" pollingFrequency="${sftp.pollInterval}" identityFile="${app.home}/${sftp.keyPath}" passphrase="${sftp.passphrase}" connector-ref="sftp"> </sftp:endpoint>

You can configure the SFTP connector with an identityFile and it's associated passphrase

<sftp:endpoint name="get-file" host="${sftp.host}" port="${sftp.port}" path="${sftp.path}" user="${sftp.username}" responseTimeout="10000" pollingFrequency="${sftp.pollInterval}" identityFile="${app.home}/${sftp.keyPath}" passphrase="${sftp.passphrase}" connector-ref="sftp"> </sftp:endpoint>

更多推荐