Skip to content

TLS连接redis返回握手失败 #322

Description

@yuThomas

使用这个库连接redis是必须要使用cert/key文件么

  1. 调用代码如下:
    `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);`

  2. 调用返回错误如下:
    polarssl_conf.cpp(208), polarssl_dll_load: /usr/local/lib/libpolarssl.so loaded! polarssl_io.cpp(447), handshake: ssl_handshake failed: -0x7200

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions