You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Set AUTH_SERVICE_OIDC_ENABLE to true only when the backend is running with a secure profile and is NOT behind an ADC/Reverse-Proxy that handles user authentication.
- Open KeyCloak UI: https://localhost:9443, login with admin user.
143
143
- Switch realm from `master` to `calm-hub-realm`.
144
144
- You can find a `demo` user with a temporary credentials under `calm-hub-realm` realm.
145
-
- During the local development, the `demo` user you can use to authenticate with `keycloak-dev` when you integrate the `calm-ui` with `authorization-code` flow type.
145
+
- During local development, you can use the `demo` user to authenticate with `keycloak-dev` when integrating calm-ui using the `authorizationcode flow`.
146
146
147
147
#### Server Side with secure profile
148
148
149
149
From the `calm-hub` directory
150
-
1. Create a serverside certificates
150
+
1. Create a server-side certificate
151
151
```shell
152
152
openssl req -x509 -newkey rsa:2048 \
153
153
-keyout ./src/main/resources/key.pem \
@@ -156,7 +156,11 @@ From the `calm-hub` directory
156
156
```
157
157
2. `../mvnw package`
158
158
3. `../mvnw quarkus:dev -Dquarkus.profile=secure`
159
-
4. Open Calm UI: https://localhost:8443
159
+
4. When using a self-signed certificate, you have two options to avoid the `No name matching localhost found` CertificateException in the backend.
160
+
1. Add a host entry in`/etc/hosts` file, for example `127.0.0.1 calm-hub.finos.org`
161
+
2. Alternatively, create the self-signed certificate with localhost as the CN or SAN.
162
+
5. Some browsers may block `.well-known` endpoints that use self-signed certificates (e.g., https://calm-hub.finos.org:9443/realms/calm-hub-realm/.well-known/openid-configuration). Ensure these endpoints are accessible in your browser before accessing `calm-hub-ui`.
163
+
6. Open Calm UI at the URL matching your self-signed certificate’s CN: https://calm-hub.finos.org:8443 or https://localhost:8443.
0 commit comments