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

remove stunnel as a dep, use redis native tls #542

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

wraithan
Copy link
Contributor

Fixes #532

The openssl code is more involved, but it is a direct translation of the gen-test-certs.sh from the redis repo used for testing. I'm betting it could be stripped down a bit but I'm not great with openssl so I just used what they did.

When I put up my PR for cluster mode + TLS, I'll likely factor the openssl code out into a separate function that can be called from the tests/support/cluster.rs module, but for now I've left it all inline.

I've verified it works locally on my macos machine and on github actions. Happy to incorporate any feedback you may have, my next day I'll definitely be able to work on this is Oct 8, though I may have some time before then.

tempdir: Some(tempdir),
addr,
}
}
}
}

pub fn wait(&mut self) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find anything that used this, even with different sets of features turned on, so I removed it.

@Marwes Marwes merged commit 0ee441c into redis-rs:master Oct 8, 2021
@wraithan
Copy link
Contributor Author

wraithan commented Oct 8, 2021

Thanks for merging this!

@wraithan wraithan deleted the native-tls branch October 8, 2021 22:42
barshaul added a commit to barshaul/redis-rs that referenced this pull request Jul 11, 2024
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.

Update TLS tests to use redis native TLS instead of stunnel
2 participants