Comment: Remember to update the release version number before publishing externally.
Info |
---|
This article is valid for Smart ID 24.R1 and later. |
...
Open the file config/encryption-config.xml.
Update the
EncryptedFields
andNewEncryptedFields
field descriptors and their referenced keys as described below. For more information on this file, see 24.R1: Sign and encrypt engine in Identity Manager.EncryptedFields
is the old, to be replaced, descriptor. Adapt its values to match the ones that are currently set up in Identity Manager.
In this example,EncryptedFields
referencesoldEncCert
as its key. Change the referenced key to match the one that is currently referenced in Identity Manager.NewEncryptedFields
is the new descriptor, holding the information of the replacement key. Change its values accordingly.
In this example,NewEncryptedFields
referencesnewEncCert
as its key. Change the referenced key to match the key that will replace the old one in Identity Manager.
Expand | |||||
---|---|---|---|---|---|
| |||||
Example: encryption-config.xml
|
Shutdown and backup
Before you start the migration:
...
When Secret Fields Key Updater is finished, look in the logfile.
If you see the The message "
SUCCESS: Encrypted Fields Keypair changed!
", indicates that the operation was successful. In this case, proceed with the next tenant, if any left, otherwise with the next section.If you see the The message "
FAILED: Changing the Encrypted Fields Keypair FAILED with status
... ", indicates that the application has failed. Restore your database from the dump you created earlier and contact Nexus.
...
Set up Identity Manager to use the new keypair
Open the files for editing.
For docker:
Open docker/compose/identitymanager/config/signencrypt.xml for editing.
For WAR file deployment:
Open Open WEB-INF/classes/engineSignEncryptConfig.xml in Identity Manager Operator, Identity Manager Admin, and Identity Manager Tenant for editing.Change the attributes of the
EncryptedFields
descriptor and its referenced key to the values needed for the new keypair, as you set them for theNewEncryptedFields
descriptor in the migration application. Note that the descriptor's name must still beEncryptedFields
and notNewEncryptedFields
for Identity Manager.For docker:
Run docker compose up from within docker/compose/identitymanager/<webappname>/ for all Identity Manager applications (Admin, Operator, and Tenant) to recreate the docker containers.
For WAR file deployment:
Start Identity Manager.