4.Generate the secret key required to start the CIAM service in a secure mode
# <SRM-INSTALLED-PATH>/APG/bin/generate-secret.sh
5.Set the environment variables for the CIAM service
# export CIAM_CLIENT_NAME=<username>
# export CIAM_CLIENT_SECRET=<generated key from step 4>
Ex:
# export CIAM_CLIENT_NAME=admin
# export CIAM_CLIENT_SECRET=ytWlcSZTntLSmXU9/HUuclnQe17sAEdaQlDqPra2eGE=
6.Copy and use the secret key to generate the config file required for starting the CIAM service
# echo <generated key from step 4> | <SRM-INSTALLED-PATH>/APG/bin/ciam-service-plain -mode=encrypt-config -config=<SRM-INSTALLED-PATH>/APG/bin/my_config.env
Ex:
# echo ytWlcSZTntLSmXU9/HUuclnQe17sAEdaQlDqPra2eGE= | /opt/APG/bin/ciam-service-plain -mode=encrypt-config -config=/opt/APG/bin/my_config.env
7.Start the CIAM service using the secret key and the config file generated above, outside your runtime environment, using the command below:
# echo <generated key from step 4> | <SRM-INSTALLED-PATH>/APG/bin/ciam-service-plain -mode=start -config=<SRM-INSTALLED-PATH>/APG/bin/config_enc.env
Ex:
# echo ytWlcSZTntLSmXU9/HUuclnQe17sAEdaQlDqPra2eGE= | /opt/APG/bin/ciam-service-plain -mode=start -config=/opt/APG/bin/config_enc.env
OR
Run the CIAM service in the background using the command below:
# nohup bash -c 'echo <generated from step 4> | <SRM-INSTALLED-PATH>/APG/bin/ciam-service-plain -mode=start -config=config_enc.env' &
Ex:
# nohup bash -c 'echo ytWlcSZTntLSmXU9/HUuclnQe17sAEdaQlDqPra2eGE= | /opt/APG/bin/ciam-service-plain -mode=start -config=config_enc.env' &
- The CIAM service must be in running state for SSO to function.
- CIAM_CLIENT_NAME - CIAM client identifier for CIAM server
- config_enc.env - encrypted configuration file created at step 6
- Execution logs will be available under <SRM-INSTALLED-PATH>/APG/bin/
- The SSO settings are stored in a temporary database (SQLite), so the configuration must be entered manually one time. After clicking SAVE, the configuration parameters will not be visually displayed in the SRM SSO settings UI.
- Since the DB used is temporary, the SSO must be reconfigured if any of the below activities are performed:
- System Reboot
- SRM upgrade or patch
- Temporary DB cleared or migrated
Refer to the SRM Administration Guide under "Troubleshooting CIAM Service" for detailed reconfiguration steps.
Steps for Windows Binary:
1.Log in to the SRM Frontend server remotely.
2.Navigate to <SRM-INSTALLED-PATH>\APG\ bin folder and create "my_config.env" configuration file (using cmd prompt >> notepad my_config.env), then copy and paste the below properties and save the file.