Configuring the TLS Encryption¶
The SEAL-specific Keycloak comes with a self-signed certificate. The certificate is stored in the following directory:
```
/opt/seal/etc/tls
```
In a productive environment, execute the following steps to change the certificates:
-
Get the TLS certificate in PEM format.
The certificate has to contain the server name of the Keycloak server.
-
Create a new directory for the external TLS certificates:
mkdir /opt/seal/etc/tls-external
-
Copy the private key and the public certificate into the new directory:
cp <your_key.pem> /opt/seal/etc/tls-external/key.pem
cp <your_cert.pem> /opt/seal/etc/tls-external/cert.pem
-
In an editor, open the Keycloak configuration file:
/opt/seal/etc/keycloak.conf
-
Change the directory for the certificates to the new directory:
# PEM encoded X.509 certificate #https-certificate-key-file=/opt/seal/etc/tls-external/key.pem #https-certificate-file=/opt/seal/etc/tls-external/cert.pem
-
Save the file and exit.
-
Start the service:
sudo systemctl start seal-keycloak