Gluu Server
The Gluu Server is a free, open-source Identity and Access Management (IAM) platform designed to provide centralized authentication, authorization, and identity federation services. It's built on open web standards and is suitable for organizations seeking secure and scalable identity solutions for web and mobile applications.
- Gluu Server CE Administration
- Gluu Server certificate import into Java truststore and service restart
Gluu Server CE Administration
๐ Step 1: SSH Into the Host Machine
From your local terminal, connect to your Gluu server host:
ssh root@your-gluu-server-ip
Replace your-gluu-server-ip with your actual IP address or hostname.
๐ฆ Step 2: Log In to the Gluu Chroot Environment
Gluu runs inside a chroot container. Enter it with:
/sbin/gluu-serverd login
Youโll know you're inside when your prompt changes (e.g., [gluu@gluu ~]#).
๐ Step 3: Navigate the Gluu File Structure
Core services are found under:
cd /opt/gluu/jetty/
- oxauth: OAuth2/OpenID Connect Provider
- identity: Admin UI (oxTrust)
- idp: SAML IDP
- scim: SCIM User Management
- fido2: FIDO2 Service
- casa: User Self-Service Portal
๐ Step 4: View Logs for Troubleshooting
Check the most recent log lines for a service. Example (oxAuth):
tail -n 50 /opt/gluu/jetty/oxauth/logs/oxauth.log
Replace oxauth with the appropriate service name as needed.
๐ Step 5: Restart Gluu Services
Option A: Using a Script
/root/restart-gluu.sh
Option B: Manual Service Restart
cd /opt/gluu/jetty/oxauth
nohup java -jar ../../jetty/start.jar > oxauth.log 2>&1 &
Repeat for other services like identity, idp, etc.
๐ Step 6: Check Running Java Services
Use this to verify if services are active:
ps aux | grep java | grep -v grep
๐ Step 7: Verify Java Truststore for Certificates
Ensure custom certs are loaded:
keytool -list -keystore /etc/ssl/certs/java/cacerts -storepass 'your-password' | grep gluu
๐ช Step 8: Exit the Chroot Environment
To return to the regular Linux shell:
exit
๐ Summary
- ๐ ๏ธ Use
/sbin/gluu-serverd loginto manage Gluu internals - ๐งญ Services located at
/opt/gluu/jetty/ - ๐ Logs help debug services under
/logs - ๐ Use
keytoolto verify Java truststore certificates
๐ก Tip: Always ensure your certificates are trusted by the JVM for SSL-based connections to succeed!
Gluu Server certificate import into Java truststore and service restart
๐ Summary
- โ๏ธ Extracted cert using OpenSSL
- โ๏ธ Imported cert to Java's
cacertstruststore - โ๏ธ Restarted Gluu Jetty services
- โ๏ธ Verified fix for SSL trust errors
h2>๐ง Trusting Gluu Self-Signed Certificate in Java Truststore
1๏ธโฃ SSH Into the Server
ssh root@your-server-ip
2๏ธโฃ Enter Gluu Chroot Environment
To access Gluu's internal environment:
/sbin/gluu-serverd login
3๏ธโฃ Extract Gluu Certificate
Use OpenSSL to pull the self-signed cert and save it:
openssl s_client -showcerts -connect gluu.mslspartners.com:443 /etc/certs/gluu-full-chain.crt
4๏ธโฃ Import Certificate into Java Truststore
๐งน Delete previous cert (if exists):
keytool -delete -alias gluu-remote \
-keystore /etc/ssl/certs/java/cacerts \
-storepass 'D0m@in@dm!n'
๐ฅ Import new cert:
keytool -import -alias gluu-remote \
-keystore /etc/ssl/certs/java/cacerts \
-trustcacerts -file /etc/certs/gluu-full-chain.crt \
-storepass 'D0m@in@dm!n' -noprompt
โ Confirm:
keytool -list -keystore /etc/ssl/certs/java/cacerts \
-storepass 'D0m@in@dm!n' | grep gluu-remote
5๏ธโฃ Restart Gluu Jetty Services
Restart each service manually or with a script.
๐ก Sample Script: /root/restart-gluu.sh
#!/bin/bash
cd /opt/gluu/jetty/oxauth && nohup java -jar ../../jetty/start.jar > oxauth.log 2>&1 &
sleep 5
cd /opt/gluu/jetty/identity && nohup java -jar ../../jetty/start.jar > identity.log 2>&1 &
sleep 5
cd /opt/gluu/jetty/idp && nohup java -jar ../../jetty/start.jar > idp.log 2>&1 &
sleep 5
cd /opt/gluu/jetty/scim && nohup java -jar ../../jetty/start.jar > scim.log 2>&1 &
sleep 5
cd /opt/gluu/jetty/fido2 && nohup java -jar ../../jetty/start.jar > fido2.log 2>&1 &
sleep 5
cd /opt/gluu/jetty/casa && nohup java -jar ../../jetty/start.jar > casa.log 2>&1 &
๐ฆ Run it:
/root/restart-gluu.sh
6๏ธโฃ Verify Java Services
ps aux | grep java | grep -v grep
7๏ธโฃ Troubleshoot Certificate Path Issues
If you see this error:
Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
โ That means the certificate is not trusted by Java. Re-check your import steps.