QuickFix C++ how do I turn on SSL?

2019-05-23 14:34发布

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.

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=??????

2条回答
Evening l夕情丶
2楼-- · 2019-05-23 15:08

quick fix has added ssl support in the recent version

查看更多
地球回转人心会变
3楼-- · 2019-05-23 15:21

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

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.

Hope this can help.

查看更多
登录 后发表回答