Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Update how to change the haproxy certificates (#445)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zach <[email protected]>
  • Loading branch information
Martin authored Jan 13, 2023
1 parent 23761cd commit c6a013f
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions source/services/haproxy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,37 @@ Manual failover
Change certificate
==================

After Tran:
-----------

* Replace the file ``environments/kolla/certificates/haproxy.pem``. You can encrypt the ``haproxy.pem`` with ansible vault password.

.. code-block:: yaml
environments/kolla/certifcates/haproxy.pem
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
[...]
-----END RSA PRIVATE KEY-----
* Key and certificates in PEM format are stored consecutively in the following order:

- server public key
- server private key (without any password)
- intermediate CA certificates

Bevor Train:
------------

* Update the certificate in the file ``environments/kolla/secrets.yml`` (``kolla_external_fqdn_cert``)
The order of certificates is important:

- Add server private key
- Add server public key
- Add intermediate CA certificates (if any)
- Add CA root certificate
- server private key
- server public key
- intermediate CA certificates (if any)
- CA root certificate

* Reconfigure HAProxy with ``osism-kolla reconfigure loadbalancer``

Expand Down

0 comments on commit c6a013f

Please sign in to comment.