QuickFix C++ 如何开启 SSL? [英] QuickFix C++ how do I turn on SSL?

查看:134
本文介绍了QuickFix C++ 如何开启 SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 java QuickFix 库的应用程序.我正在尝试将其移植到 C++.问题是该库的 java 版本似乎通过 SSL 连接发送数据,而 C++ 库发送未加密的数据.在 java 中,当我将配置文件传递给库时,在库中内部启用了 SSL.完全相同的文件被传递给 C++,但在第二种情况下没有开启 SSL.

I have an application using the java QuickFix library. I am trying to port it to C++. The problem is that the java version of the library seems to send the data over an SSL connection, while the C++ library sends the data unencrypted. In java, SSL is enabled internally in the library when I pass the config file to the library. The exact same file is passed to C++, but SSL is not turned on in the second case.

请帮助我,如何在 C++ 中使用带有 SSL 的 QuickFix?

Please help me, how can I use QuickFix with SSL in C++?

配置文件(抱歉??太多敏感信息):

Config file (sorry for the ?? too much sensitive information):

[default]
# QuickFixJ specific parameters (please do not modify)
FileStorePath=logs/session/
MessageProcessingDelay=6000

# Default parameter settings for your client (modify/add as needed), to be applied to all sessions.
ConnectionType=initiator
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ReconnectInterval=5
BeginString=FIX.4.4

SocketConnectHost=???.???.???.???
SocketConnectPort=??????
TargetCompID=??????
Username=??????
Password=??????
UseDataDictionary=N

#The following three lines are needed for Apache Mina SSL support only.
SocketUseSSL=Y
SocketKeyStore=config/ssl/ApacheMina/keystore.jks
SocketKeyStorePassword=?????????

#Declare and configure quote and trade sessions
#  beginning with a '[session]' designator for each session.
[session]
SenderCompID=????????
Account=???????????

[session]
SenderCompID=???????
Account=??????

推荐答案

感谢您提供配置文件.我从来没有用过 then switch SocketUseSSL=Y

Thanks for the config file. I have never used then switch SocketUseSSL=Y

相反,在我们的生产环境中,为了通过 SSL 加密数据,我们使用了一个免费软件:sTunnel

Instead, in our production environment, in order to encrypt data over SSL we are using a free software: sTunnel

安装和配置非常简单,可以在许多不同的平台上运行.

It's quite straightforward to install and config, and run over many different platforms.

希望能帮到你.

这篇关于QuickFix C++ 如何开启 SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆