-
Notifications
You must be signed in to change notification settings - Fork 71
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
Rediss:// connection returns error #348
Comments
@melishev Unfortunately, I have no credit card to create Digital Ocean managed redis instances. redli --tls -h redis-test-do-user-4915853-0.db.ondigitalocean.com -a your_password -p 25061 const Redis = require('ioredis');
const fs = require('fs');
const redis = new Redis({
host: 'hostname',
port: <port>,
tls: {
key: fs.readFileSync('path_to_keyfile', 'ascii'),
cert: fs.readFileSync('path_to_certfile', 'ascii'),
ca: [ fs.readFileSync('path_to_ca_certfile', 'ascii') ]
}
}); Releated links: |
FWIW, I did not have this problem with this package using just Redis commands. However, I did have this problem when using So you might try: RedisModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService) => {
return {
readyLog: true,
config: {
redis: {
tls: {},
connectTimeout: 30000,
},
url: 'rediss://default:<password>@<host>:25061',
},
};
},
}), |
Current Behavior
I'm trying to connect to my Digital Ocean hosted Redis database using this configuration:
I take the connection string from DO, and it is correct. But when I try to connect, I get an error:
I believe this error is related to SSL/TLS connection and configuration
Context
Sorry if my problem is stupid or already solved. I am new to Redis
Your Environment
The text was updated successfully, but these errors were encountered: