Keycloak: Unterschied zwischen den Versionen

Aus WIKI
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 22: Zeile 22:
hostname=keycloak.example.org
hostname=keycloak.example.org
</pre>
</pre>
====== Letsencrypt zertifikate konfigurieren ======
<pre>
https-certificate-file=/etc/letsencrypt/live/<domain>/cert.pem
https-certificate-key-file=/etc/letsencrypt/live/<domain>/privkey.pem
</pre>
====== Ports konfigurieren ======
<pre>
http-port=8080
https-port=8443
</pre>
====== Http verbindungen deaktivieren ======
<pre>
http-enabled=false
</pre>


[https://kaeruct.github.io/posts/how-to-use-lets-encrypt-certificates-with-keycloak.html How to use Let's Encrypt certificates with Keycloak]
[https://kaeruct.github.io/posts/how-to-use-lets-encrypt-certificates-with-keycloak.html How to use Let's Encrypt certificates with Keycloak]

Version vom 27. Oktober 2023, 03:40 Uhr

keycloak get started...

mariadb Datenbank einrichten
mysql -u root -p 
CREATE DATABASE keycloak;
GRANT ALL ON keycloak.* TO 'keycloak'@'localhost' IDENTIFIED BY 'strongpassword';
FLUSH PRIVILEGES;
EXIT;
downloaden von keycloak
wget https://github.com/keycloak/keycloak/releases/download/22.0.5/keycloak-22.0.5.tar.gz
tar xfz keycloak-22.0.5.tar.gz
cd keycloak-22.0.5
Datenbank konfigurieren in conf/keycloak.conf
db=mariadb
db-username=keycloak
db-password=strongpassword
db-url=jdbc:mariadb://localhost:3306/keycloak
hostname=keycloak.example.org
Letsencrypt zertifikate konfigurieren
https-certificate-file=/etc/letsencrypt/live/<domain>/cert.pem
https-certificate-key-file=/etc/letsencrypt/live/<domain>/privkey.pem
Ports konfigurieren
http-port=8080
https-port=8443
Http verbindungen deaktivieren
http-enabled=false


How to use Let's Encrypt certificates with Keycloak