Question

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=??????
Was it helpful?

Solution

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.

OTHER TIPS

quick fix has added ssl support in the recent c++ version

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top