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

Expose set ssl ciphers #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jensdpersson
Copy link

Exposes the set-ciphers functions in HsOpenSSL as a command line flag.

Example usage for the test server
.cabal/bin/snap-test-server --ssl-port 8003 --ssl-address 0.0.0.0 --ssl-cert path/to/cert_and_key.pem --ssl-key cert_and_key.pem --no-ssl-chain-cert --ssl-ciphers 'TLSv1.2'

The string format for the --ssl-ciphers param is described in https://www.openssl.org/docs/man1.0.2/man1/ciphers.html

Also added a build dep to the test server entry in cabal file to make it build.
Also had to change deprecated Socket.bindSocket to just bind to make it build. (There seemed to be a mechanism to handle this using some macro checking network versions but it did not seem to work)

@jensdpersson
Copy link
Author

Argh, tests failing. I'll overload the changed function and update the PR as soon as possible.

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

Successfully merging this pull request may close these issues.

1 participant