github.com/outbrain/consul@v1.4.5/website/source/docs/commands/tls.html.md (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: TLS" 4 sidebar_current: "docs-commands-tls" 5 --- 6 7 # Consul TLS 8 9 Command: `consul tls` 10 11 The `tls` command is used to help with setting up a CA and certificates for Consul TLS. 12 13 ## Basic Examples 14 15 Create a CA: 16 17 ```text 18 $ consul tls ca create 19 ==> Saved consul-agent-ca.pem 20 ==> Saved consul-agent-ca-key.pem 21 ``` 22 23 Create a client certificate: 24 25 ```text 26 $ consul tls cert create -client 27 ==> Using consul-agent-ca.pem and consul-agent-ca-key.pem 28 ==> Saved consul-client-dc1-0.pem 29 ==> Saved consul-client-dc1-0-key.pem 30 ``` 31 32 For more examples, ask for subcommand help or view the subcommand documentation 33 by clicking on one of the links in the sidebar. 34 35 ## Usage 36 37 Usage: `consul tls <subcommand> <subcommand> [options]` 38 39 For the exact documentation for your Consul version, run `consul tls -h` to 40 view the complete list of subcommands. 41 42 ```text 43 Usage: consul tls <subcommand> <subcommand> [options] 44 45 # ... 46 47 Subcommands: 48 ca Helpers for CAs 49 cert Helpers for certificates 50 ``` 51 52 For more information, examples, and usage about a subcommand, click on the name 53 of the subcommand in the sidebar or one of the links below: