open-consul/website/pages/docs/commands/tls/ca.mdx

31 lines
550 B
Plaintext
Raw Normal View History

---
2020-04-07 18:55:19 +00:00
layout: docs
page_title: 'Commands: TLS CA Create'
2020-04-07 23:56:08 +00:00
sidebar_title: 'ca'
2020-04-07 18:55:19 +00:00
sidebar_current: docs-commands-tls-ca
---
# Consul TLS CA Create
Command: `consul tls ca create`
This command create a self signed CA to be used for Consul TLS setup.
## Example
Create CA:
```bash
$ consul tls ca create
==> Saved consul-ca.pem
==> Saved consul-ca-key.pem
```
## Usage
2020-04-07 18:55:19 +00:00
Usage: `consul tls ca create [filename-prefix] [options]`
#### TLS CA Create Options
2020-04-07 18:55:19 +00:00
- `-days=<int>` - Provide number of days the CA is valid for from now on, defaults to 5 years.