Keycloak Encryption¶
Keycloak provides secure user authentication using the OAuth 2.0 protocol. Keycloak serves as an interface to the existent user management.
After the default installation, SEAL Print Client is executable but a self-signed certificate is used, which has to be exchanged for the productive mode.
For security reasons, the following configuration steps are recommended.
Configure the SSL Encryption for Keycloak¶
In order to make the system secure, the following steps has to be executed:
-
Convert your certificate to the PKCS12 format:
openssl pkcs12 -export -in <yourdomain.com.crt> -inkey <yourdomain.com.key> -out <yourdomain.com.p12> -name default -CAfile <your_provider_bundle.crt> -caname <root>
-
Create a key store:
-
keytool -importkeystore -deststorepass <keystore_password> -destkeypass <key_password> -destkeystore <yourdomain.com.jks> -srckeystore <yourdomain.com.p12> -srcstoretype PKCS12 -srcstorepass <secret_password_used_in_csr> -alias default
Literature - keytool
For further information, refer to Keytool.
-
-
Copy the generated key store into the JBoss configuration directory:
/opt/seal/infrastructure/data/seal-keycloak/configuration
.
-
In the
security-realms
section of/opt/seal/infrastructure/data/seal-keycloak/configuration/standalone.xml
, insert the following lines:<security-realm name="SslRealm"> <server-identities> <ssl> <keystore path="<yourdomain.com.jks>" relative-to="jboss.server.config.dir" keystore-password="<keystore_password>"/> </ssl> </server-identities> </security-realm>
-
In
/opt/seal/infrastructure/data/seal-keycloak/configuration/standalone.xml
, replace the existenthttps-listener
by the following line:<https-listener name="default-ssl" socket-binding="https" security-realm="SslRealm"/>
Change the Keycloak Administrator User¶
After the default installation, the following Keycloak administrator user is configured:
Username: admin
Password: SealAdmin1
Change the Password!
Change the Redirect URI in Keycloak¶
-
Log on to the Keycloak administrator user interface.
-
In
Clients
, selectClient ID
. -
Select
seal-print-client
. -
In
Valid Redirect URIs
, enter a URI with the hostname of the SEAL Print Client server. -
In
Web Origins
, enter a URI with the hostname of the SEAL Print Client server. -
Save the settings.