Skip to content

Instantly share code, notes, and snippets.

@kainlite
Last active April 28, 2019 03:34
Show Gist options
  • Select an option

  • Save kainlite/f46c829de562750d0fb21ec25f8fa91b to your computer and use it in GitHub Desktop.

Select an option

Save kainlite/f46c829de562750d0fb21ec25f8fa91b to your computer and use it in GitHub Desktop.
certs
$ consul tls ca create
==> Saved consul-agent-ca.pem
==> Saved consul-agent-ca-key.pem
$ consul tls cert create -server -additional-dnsname server.dc1.cluster.local
==> WARNING: Server Certificates grants authority to become a
server and access all state in the cluster including root keys
and all ACL tokens. Do not distribute them to production hosts
that are not server nodes. Store them as securely as CA keys.
==> Using consul-agent-ca.pem and consul-agent-ca-key.pem
==> Saved dc1-server-consul-0.pem
==> Saved dc1-server-consul-0-key.pem
$ consul tls cert create -client
==> Using consul-agent-ca.pem and consul-agent-ca-key.pem
==> Saved dc1-client-consul-0.pem
==> Saved dc1-client-consul-0-key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment