For security in FIX messaging, the OnixS C++ FIX Engine provides the ability to encrypt FIX connections with the SSL (Secure Sockets Layer) protocol.
To use SSL in FIX connectivity the following steps should be taken:
SSL.CertificateFile
and SSL.PrivateKeyFile
parameters in Engine configuration settings. They can refer to the same file if it contains both the SSL certificate and the private key.newEncryptionMethod
parameter value right after the creation of the OnixS::FIX::Session object.ISessionListener sessionListener; Session session("Sender", "Target", FIX_42, &sessionListener); session.setEncryptionMethod(Session::SSL); session.logonAsInitiator("localhost", 443, true); // Message exchange goes here.. session.logout("SSL connection is finished."); session.shutdown();