---
title: config-tls
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical-com-2934.demos.haus/maas/docs/config-tls?format=md
---

*Submit*

# config-tls

Enable or disable TLS for MAAS.

```
maas config-tls enable [-h] [--cacert CACERT] [-p PORT] [--yes] key cert
```

```
maas config-tls disable [-h]
```

#### Positional arguments

| Argument | Effect |
| --- | --- |
| key | path to the private key |
| cert | path to certificate in PEM format |

#### Command-line options

| Option | Effect |
| --- | --- |
| -h, --help | show this help message and exit |
| –cacert CACERT | path to CA certificates chain in PEM format (default: |
|  | None) |
| -p PORT, --port PORT | HTTPS port (default: 5443) |
| –yes | Skip interactive confirmation (default: False) |
|  |  |

---

[Previous

config](https://canonical-com-2934.demos.haus/maas/docs/config)
[Next

config-vault](https://canonical-com-2934.demos.haus/maas/docs/config-vault)

Last updated 1 year, 5 months ago. [Help improve this document in the forum](https://discourse.maas.io/t/config-tls/11351).
