Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does OFTest support TLS or SSL encryption? #218

Open
castroflavio opened this issue Dec 22, 2016 · 1 comment
Open

Does OFTest support TLS or SSL encryption? #218

castroflavio opened this issue Dec 22, 2016 · 1 comment

Comments

@castroflavio
Copy link

No description provided.

@jonstout
Copy link
Contributor

I don't think it does out of the box, but it should be relatively easy if you use the python ssl module. You'll probably have to do something like the following in controller._socket_ready_handle after self.listen_socket.accept().

if self.keyfile and self.certfile:
    try:
        sock = ssl.wrap_socket(sock, server_side=True,
                               keyfile=self.keyfile,
                               certfile=self.certfile)
    except ssl.SSLError as err:
        self.logger.info(err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants