Skip to content
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

How to configure etcd ssl connection #213

Open
Hanoboo opened this issue Apr 1, 2024 · 0 comments
Open

How to configure etcd ssl connection #213

Hanoboo opened this issue Apr 1, 2024 · 0 comments

Comments

@Hanoboo
Copy link

Hanoboo commented Apr 1, 2024

I tried to connect etcd with ssl certificate, but failed and reported an error.

  • code
local function connectEtcd()
    local conf = _M.conf
    local opt = {
        http_host = conf.etcd_endpoints,
        ssl_cert_path = conf.ssl_cert_path,
        ssl_key_path = conf.ssl_key_path,
        trusted_ca = conf.trusted_ca
    }
    local cli, err = etcd.new(opt)
    if not cli then
        return nil, err
    end
    return cli,nil
end
  • error
    SSL_do_handshake() failed (SSL: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:SSL alert number 42)

  • question

Is the parameter trusted_ca the path to ca.pem to be passed in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant