2021-03-18 08:11:53 -03:00
|
|
|
|
|
|
|
.. pmb1590001656644
|
|
|
|
.. _install-rest-api-and-horizon-certificate:
|
|
|
|
|
|
|
|
========================================
|
|
|
|
Install REST API and Horizon Certificate
|
|
|
|
========================================
|
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
|
|
|
This certificate must be valid for the domain configured for OpenStack, see the
|
|
|
|
sections on :ref:`Accessing the System <access-using-the-default-set-up>`.
|
|
|
|
|
2021-07-16 15:37:55 -04:00
|
|
|
.. rubric:: |prereq|
|
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
Obtain an Intermediate or Root CA-signed certificate and key from a trusted
|
|
|
|
Intermediate or Root CA. The OpenStack certificate should be created with a
|
|
|
|
wildcard SAN, for example:
|
2021-07-16 15:37:55 -04:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
.. code-block:: none
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
X509v3 extensions:
|
|
|
|
X509v3 Subject Alternative Name:
|
|
|
|
DNS:*.west2.us.example.com
|
2021-03-18 08:11:53 -03:00
|
|
|
|
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
.. rubric:: |proc|
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
#. Put the |PEM| encoded versions of the OpenStack certificate and key in a
|
|
|
|
single file (e.g. **openstack-cert-key.pem**), and put the certificate of
|
|
|
|
the Root CA in a separate file (e.g. **openstack-ca-cert.pem**), and copy
|
|
|
|
the files to the controller host.
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
#. Install the certificate as the OpenStack REST API / Horizon Certificate.
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
.. code-block:: none
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-07-29 19:23:57 -04:00
|
|
|
~(keystone_admin)]$ system certificate-install -m ssl_ca openstack-ca-cert.pem
|
|
|
|
~(keystone_admin)]$ system certificate-install -m openstack_ca openstack-ca-cert.pem
|
|
|
|
~(keystone_admin)$ system certificate-install -m openstack openstack-cert-key.pem
|
2021-03-18 08:11:53 -03:00
|
|
|
|
|
|
|
#. Apply the Helm chart overrides containing the certificate changes.
|
|
|
|
|
2021-10-26 11:25:46 -04:00
|
|
|
.. parsed-literal::
|
2021-03-18 08:11:53 -03:00
|
|
|
|
2021-10-26 11:25:46 -04:00
|
|
|
~(keystone_admin)$ system application-apply |prefix|-openstack
|
2021-03-18 08:11:53 -03:00
|
|
|
|