jplana / python-etcd

A python client for etcd
Other
520 stars 210 forks source link

How to pass private SSL key #271

Closed kit1980 closed 4 years ago

kit1980 commented 4 years ago

To access etcd in my setup, cert, ca_cert, and private key is needed. Example curl command: curl https://10.255.255.5:2379/v2/keys --cacert /etc/kubernetes/certs/ca.crt --cert /etc/kubernetes/certs/client.crt --key /etc/kubernetes/certs/client.key

I see Client constructor has parameters for cert and ca_cert, but how to pass the private key?

kit1980 commented 4 years ago

I see now that you pass key as a second element of the tuple for the cert parameter. A bit confusing, but should work for me.