Skip to content

Commit d726bb0

Browse files
authored
Fixes #725 - Add rails command to add ES certificate
1 parent 6d1ec7c commit d726bb0

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

install/elasticsearch/connect-configure-elasticsearch.rst

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,31 @@ Elasticsearch user and password (Elasticsearch 8 and newer)
5252
$ zammad run rails r "Setting.set('es_password', '<password>')"
5353
5454
Add certificate to Zammad (Elasticsearch 8 and newer)
55-
This step requires a running Zammad. If you are installing a new Zammad
56-
instance, go on with the :doc:`installation <../package>` and come back here
57-
when you can access the admin settings in the browser.
55+
Add it via **Rails console**:
56+
In case you are installing a new Zammad and didn't run through the
57+
getting started wizard already, add the certificate via console:
5858

59-
Show and copy the auto-generated certificate from Elasticsearch and add it
60-
to Zammad. Make sure to copy/paste the delimiters
61-
(e.g. ``-----BEGIN CERTIFICATE-----``) too.
59+
.. code-block:: console
6260
63-
.. code-block:: console
61+
$ sudo cat /etc/elasticsearch/certs/http_ca.crt | zammad run rails r "SSLCertificate.create!(certificate: STDIN.read)"
62+
63+
Add it via **UI**:
64+
In case you already have a running and configured Zammad, you can add the
65+
certificate in Zammad's
66+
:admin-docs:`admin settings </settings/security/ssl-certificates.html>`
67+
(*Settings > Security > SSL Certificates*) as an alternative.
68+
To show and copy the auto-generated certificate from Elasticsearch, run:
69+
70+
.. code-block:: console
71+
72+
$ sudo cat /etc/elasticsearch/certs/http_ca.crt
6473
65-
$ sudo cat /etc/elasticsearch/certs/http_ca.crt
74+
To add it in Zammad, either upload the certificate file or paste the
75+
content in the dialog. Make sure to copy/paste the delimiters
76+
(e.g. ``-----BEGIN CERTIFICATE-----``) too.
6677

67-
To add it in Zammad, go to *Settings > Security > SSL Certificates* in the
68-
:admin-docs:`admin settings </settings/security/ssl-certificates.html>` and
69-
add your copied certificate. Either upload the certificate file or paste the
70-
content in the dialog. After saving the certificate, Zammad is now able to
71-
connect to and access the Elasticsearch index.
78+
In any case, you can find the certificate in the UI. This looks like
79+
this:
7280

7381
.. figure:: /images/install/elasticsearch/admin-certificate-management.png
7482
:alt: Screenshot shows certificate management in Zammad's admin panel

0 commit comments

Comments
 (0)