Port details on branch 2024Q4 |
- keycloak Identity and access management solution
- 26.0.7 net =0 26.0.7Version of this port present on the latest quarterly branch.
- Maintainer: freebsd@rheinwolf.de
- Port Added: 2024-10-30 16:18:06
- Last Update: 2024-12-03 13:23:07
- Commit Hash: 66818af
- Also Listed In: java
- License: APACHE20
- WWW:
- https://www.keycloak.org/
- Description:
- Keycloak is an open source Identity and Access Management solution
aimed at modern applications and services. It makes it easy to
secure applications and services with little to no code.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/net/keycloak/ && make install clean
- To add the package, run one of these commands:
- pkg install net/keycloak
- pkg install keycloak
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: keycloak
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1733217366
SHA256 (keycloak-26.0.7.tar.gz) = a6d770bbf55625781f1225a54a130839cdc1dd4ad5b3b4bbb18c9ac8bca8f8ae
SIZE (keycloak-26.0.7.tar.gz) = 146830154
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Runtime dependencies:
-
- java : java/openjdk21
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for keycloak-26.0.7:
DOCS=on: Build and/or install documentation
EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
- Options name:
- net_keycloak
- USES:
- cpe shebangfix
- pkg-message:
- For install:
- Keycloak was installed
1) Configuration files are located at /usr/local/share/java/keycloak/conf
2) keycloak start in production mode by default. https is mandatory in this
mode. You must generate some certificate files.
# cd /usr/local/share/java/keycloak/conf
# openssl req -newkey rsa:2048 -nodes -keyout server.key.pem -x509 \
-days 3650 -out server.crt.pem
# chmod 640 server.crt.pem server.key.pem
# chown keycloak:keycloak server.crt.pem server.key.pem
Do not forget set certificate paths into keycloak.conf
3) If you want start keycloak on develpment mode (http), you can change
it the following way:
# sysrc keycloak_flags=start-dev
4) Also you can use mysql or postgresql backend for store keycloak data. Take a
look at db, db-username, db-password and db-url options into keycloak.conf
file.
5) Enable keycloak service
# service keycloak enable
6) Sometimes you will need run a keycloak build when you change some settings
into config file or when you pass from development mode to production mode.
Try the following if you need it:
# service keycloak build
7) Start keycloak service
# service keycloak start
8) Development mode listen on 8080 port and production mode listen on 8443 port
by default. Depending of your own configuration, the administration console
can be accesing from a web browser from localhost first time:
http://localhost:8080
or if you are using production mode
https://ip_or_hostname:8443
9) Also, you can create admin user by using KEYCLOAK_ADMIN and
KEYCLOAK_ADMIN_PASSWORD environment variables when keycloak is started first
time on production mode:
# cd /usr/local/etc/rc.d
# KEYCLOAK_ADMIN=admin_user KEYCLOAK_ADMIN_PASSWORD=pass_user sh keycloak start
10) For more information about keycloak configuration, visit:
https://www.keycloak.org/documentation
11) Enjoy it
- Master Sites:
|