-
Notifications
You must be signed in to change notification settings - Fork 935
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
TLS连接redis返回握手失败 #322
Comments
是的,而且需要有ca证书,可以参考:#155 中讨论的。 |
好的,感谢 |
再次请问,是否有提供单向认证功能,即客户端不携带证书。 |
这个双向验证似乎是redis-server要求的。 |
|
使用这个库连接redis是必须要使用cert/key文件么
调用代码如下:
`acl::acl_cpp_init();
acl::log::stdout_open(true);
acl::redis_client c("redis:6379");
c.set_password("");
acl::polarssl_conf::set_libpath("/usr/loca/lib/libpolarssl.so");
auto conf = new acl::mbedtls_conf;
c.set_ssl_conf(conf);
const char *key = "OBD:ALKDJFLAKDJADSK";
acl::redis conn;
conn.set_client(&c);
auto ret = conn.set(key, "1", 10, SETFLAG_NX | SETFLAG_EX);`
调用返回错误如下:
polarssl_conf.cpp(208), polarssl_dll_load: /usr/local/lib/libpolarssl.so loaded! polarssl_io.cpp(447), handshake: ssl_handshake failed: -0x7200
The text was updated successfully, but these errors were encountered: