Closed vishvikkrishnan closed 8 months ago
Hi @vishvikkrishnan
I am afraid that this feature request cannot be implemented. The configuration of TLS is not made through the API. Instead, as it can be observe here this is implemented with a Django command. That means you can only run it from region controller.
The API does not provide access to this configuration option simply because transmitting the private key over the network would compromise its security.
It would be helpful to have a
maas_tls
resource to enable TLS communications for the MAAS API. Currently, this is achieved using the command:sudo maas config-tls enable $key $cert --port YYYY
where
$key
,$cert
, andYYYY
are private key, TLS certificate, and the HTTPS port, respectively.A model maas_tls resource could look like this: