OFTP传输常见问题

7 篇文章 0 订阅
2 篇文章 0 订阅

Q1:Error building packet to send: Virtual Filename is too long. Must be no larger than 26 characters
A1:OFTP传输文件名不能超过26位,①修改文件名长度;②设置虚拟文件名:在Advanced界面配置Virtual Filename Map为*=test.edi(可根据实际情况配置,支持不同类文件配置不同虚拟文件名)

Q2:SendFile: Server certificate validation failed. Connection aborted
A2:将对方的公钥证书配错了

Q3:test connection报错:Server supplied an invalid password
A3:双方配置发送方的OFTP密码不一致,确认修改

Q4:发送文件报错:File exists and overwrite is set to false.
A4:发送了相同文件,对方不接收

Q5:test connection报错:SignedReceipt is only supported when using OFTP version 2.0
A5:OFTP Version版本问题,改为1.4测试成功

Q6:Failure! Cannot conclude ssl handshake. Cause: Received fatal alert: handshake_failure
A6:没有配置对方的SSL证书

Q7:Secure authentication requirements incompatible
A7:勾选Secure Odette Authentication

Q8:给函数提供的标志无效 (0x80090308);
Received a weak ephemeral Diffie-Hellman key (less that 1054 bites) in sever key change handshake message
A8:SSL连接问题,在profile.cfg增加配置[Application] UseManagedSecurityAPI=true ;[OFTP]AllowDHWeakKeys=True
还不行的话,检查下advanced界面的SSL客户端验证是否选择私钥证书,有时候SSL是要双验证的,客户也要验证我们的证书
或者看下SSL协议版本,尝试勾选TLSv1.0或者1.1或者1.2

Q9:encrypted file not allowed;log中报错: errorCode: 687 description: File was not accepted by the destination.
A9:是对方做了设置,出现此类问题①先TP确认下公钥证书②将log提供给TP确认是否做了限制

Q10:errorCode: 280 description: Error verifying Server certificate: 800B0109 A certification chain
processed correctly but terminated in a root certificate not trusted by the trust provider.
A10:将私钥导入到服务器,解决证书不被信任问题

Q11:OFTP接收文件状态为:Processing,log中报错:Unable to clean up incomplete message [ -> ]: 文件“C:\Users\supplier\AppData\Local\Temp\test1.edi”正由另一进程使用,因此该进程无法访问此文件。
A11:①确认是否有其他程序在监控这个目录下的文件;②确认服务器上是否有安装360等安全软件,将C:\Users\supplier\AppData\Local\Temp加入360等安全软件的白名单

Q12:Resources not available,对方发文件会报找不到证书
A12:在OFTP连接过程中,对方发起了Authentication Challenge验证,配置
Auth Challenge Certificate证书,需要双方都进行配置

Q13:对方发文件报错:SSL Handshake failed: Received close_notify during handshake
我们发文件报错:errorCode: 286 description: Received fatal alert: HANDSHAKE_FAILURE
A13:SSL算法问题,整理一个比较全的SSL算法列表,和客户服务器上log中的做对比,删除所有c02及以上的算法,
在profile.cfg中[OFTP]下添加 SSLEnabledCipherSuites =所有的算法用;隔开,注意修改后在OFTP页面save或者重启服务,重启保险
SSLEnabledCipherSuites = TLS_RSA_WITH_AES_256_CBC_SHA256;TLS_DHE_RSA_WITH_AES_256_CBC_SHA256;TLS_DHE_DSS_WITH_AES_256_CBC_SHA256

Q14:如何设置自动接收对方的文件?
A14:在Advanced界面设置:Connect To Receive为True,还可以设置时间间隔

Q15:修改OFTP的TLS版本:
A15:在Profile.cfg文件中修改SSLEnabledProtocols参数

Q16:Error establishing connection to ‘xxx.xxx.com’ Cannot conclude ssl handshake. Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
A16: SSL证书问题,确认下配置的对方的SSL证书

Q17:连接测试报错:Received fatal alert:CERTIFICATE_UNKNOWN
A17:请对方检查证书是否配置正确,是否有设置TLS client authentication

Q18:Could not match the configuration data
A18:OFTP获取的文件有一个是processing的状态,文件没有收到回执所以被转到send目录下发送了,导致OFTP ID不匹配

Q19:对方可以发文件,但我们连接对方时 timeout,尝试在服务器ping和telnet对方端口都是通的,防火墙也没限制,log中显示有的时候(间隔10min)可以连上,但会突然断开连接
A19:在OFTP端口的port.cfg添加: DisconnectAfterEndSession =true

Q20:连接测试成功,我们可以发送,对方发送报错 TLS Connection could not be created. Receiver: ip=/, port=6619, Sender: ip=/, port=6619, Reason: ConnectionException/Exception during handshake[TLS] ,
查看server log显示,建立TLS连接时无法解密文件
A20:修改Profile中UseManagedSecurityAPI = true

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值