Using etcd directly.
etcdctl --endpoints http://${HOSTNAME}:2379 ls /
etcdctl --endpoints http://${HOSTNAME}:2379 user add root:eJAGqhLpxVfYEaYTGvZkeGzdkshYFb
etcdctl --endpoints http://${HOSTNAME}:2379 auth enable
etcdctl --endpoints http://${HOSTNAME}:2379 --username root:eJAGqhLpxVfYEaYTGvZkeGzdkshYFb role remove guest
etcdctl --endpoints http://${HOSTNAME}:2379 --username root:eJAGqhLpxVfYEaYTGvZkeGzdkshYFb ls /
Using etcdctl:
etcdctl --ca-file /etc/pki/tls/certs/ca-usmqe.crt --cert-file /etc/pki/tls/certs/etcd.crt --key-file /etc/pki/tls/private/etcd.key --endpoints https://${HOSTNAME}:2379 ls /
Using curl:
curl --cacert /etc/pki/tls/certs/ca-usmqe.crt --cert /etc/pki/tls/certs/etcd.crt --key /etc/pki/tls/private/etcd.key https://mbukatov-usm1-server.example.com:2379/v2/keys/
curl --cacert /etc/pki/tls/certs/ca-usmqe.crt --cert /etc/pki/tls/certs/etcd.crt --key /etc/pki/tls/private/etcd.key https://10.37.169.90:2379/v2/keys/