-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
When using rediss:/ URLs, auto-configure tls.servername
#948
Comments
From the issue comment
I submitted PR #939 so I'm happy to submit another PR to correct this issue. In retrospect, I should have added a test to ensure that custom tls options would not be overwritten by the default.
My use case was Redis through AWS Elasticache. I didn't run into issues with the server name. Thanks for documenting this issue so clearly. If changing the behavior that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
## [4.14.1](redis/ioredis@v4.14.0...v4.14.1) (2019-08-27) ### Bug Fixes * don’t clobber passed-in tls options with rediss:/ URLs ([#949](redis/ioredis#949)) ([ceefcfa](redis/ioredis@ceefcfa)), closes [#942](redis/ioredis#942) [#940](redis/ioredis#940) [#950](redis/ioredis#950) [#948](redis/ioredis#948)
As mentioned at #939 (comment), using
ioredis
(ornode-redis
) with Compose.io's Let's Encrypt certificates generates an SSL error:Disabling strict SSL is a workaround, though the correct solution is to pass the
servername
option to TLS.connect, which tells the client which TLS certificate to use.I found the solution in this article: https://www.compose.com/articles/ssl-connections-arrive-for-redis-on-compose/
It doesn't do an awesome job of explaining the cause, though I think the reason is that there are more than one certificates being used on the same IP address.
My code looks like this:
I'd be happy to open a PR if this default behavior would be welcome!
The text was updated successfully, but these errors were encountered: