redisInitiateSSLWithContext() API failing when upgraded Hiredis code to use SSL Context #1037
Unanswered
nitinjm123
asked this question in
Q&A
Replies: 1 comment 3 replies
-
It's hard to say without a small example I can compile and run. Are you able to connect to the Redis instance via Since you aren't attaching any certs or keys you will only be able to connect to a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have updated Hiredis code to use SSL connection to existing working code.
As per example, followed the way to create RedisSSLContext and called redisInitiateSSLWithContext() API.
#1. redisInitOpenSSL();
#2. redisSSLContext* pRedisSSLContext = redisCreateSSLContext(
NULL, /* File name of trusted CA/ca bundle file, optional /
NULL, / Path of trusted certificates, optional /
NULL, / File name of client certificate file, optional /
NULL, / File name of client private key, optional /
server, / Server name to request (SNI), optional */
&SSLContextError);
#3. created redisContext* pRedisContext with redisConnectWithTimeout()
This is successful.
$4. called redisInitiateSSLWithContext(pRedisContext, pRedisSSLContext)
Result is not successful (!REDIS_OK)
pRedisContext->err =1,
ptHandle->pRedisContext->errstr=Unknown error
Can someone guide me to overcome this issue and find the exact cause?
Regards,
Nitin
Beta Was this translation helpful? Give feedback.
All reactions