快速修复:如何在Python中使用SSL

快速修复:如何在Python中使用SSL,python,ssl,quickfix,fix-protocol,Python,Ssl,Quickfix,Fix Protocol,[对不起我的英语] 我在连接用python开发的客户机quckfix时遇到问题。配置文件没有像我希望的那样响应 如果我更改了文件*.pem的路径(对于强制错误,路径不正确),并重新启动应用程序。th应用程序没有任何功能,只是保持正常运行 就好像没有读取配置一样 在本教程中提到:quickfix的Python实现不支持SSL,这是真的吗 这是用于windows中的python IOM实现,其中包含来自的库quickfix 是的,截至撰写本文时,quickfix不支持现成的SSL。您需要手动创建从

[对不起我的英语] 我在连接用python开发的客户机quckfix时遇到问题。配置文件没有像我希望的那样响应

如果我更改了文件*.pem的路径(对于强制错误,路径不正确),并重新启动应用程序。th应用程序没有任何功能,只是保持正常运行

就好像没有读取配置一样

在本教程中提到:quickfix的Python实现不支持SSL,这是真的吗

这是用于windows中的python IOM实现,其中包含来自的库quickfix


是的,截至撰写本文时,quickfix不支持现成的SSL。您需要手动创建从您的计算机到需要SSL连接的主机的SSL隧道。你可以通过“特技”做到这一点。在下面发布一些配置,希望能够解释如何设置它

STUNNEL配置

log = append
output = <path where logs will be written>

[client]
client = yes
accept = <port of your choosing on the local machine for quickfix>
connect = <ssl host you want to connect to>:<port>
verifyPeer = yes
CAfile = <path of certification provided by SSL host>
checkHost = <ssl host you want to connect to>
debug = debug
[DEFAULT]
<Other relevant settings>
SocketConnectPort=1589
SocketConnectHost=localhost

[SESSION]
<Other relevant settings>
快速修复配置

log = append
output = <path where logs will be written>

[client]
client = yes
accept = <port of your choosing on the local machine for quickfix>
connect = <ssl host you want to connect to>:<port>
verifyPeer = yes
CAfile = <path of certification provided by SSL host>
checkHost = <ssl host you want to connect to>
debug = debug
[DEFAULT]
<Other relevant settings>
SocketConnectPort=1589
SocketConnectHost=localhost

[SESSION]
<Other relevant settings>
[默认值]
SocketConnectPort=1589
SocketConnectHost=localhost
[会议]