IBM Security Key Lifecycle Manager, Version 2.7

IBM Security Key Lifecycle Manager, Version 2.6 backup and restore - README

The README file describes how to run backup and restore operations on IBM Security Key Lifecycle Manager, Version 2.6 data.
Contents
Note: For greater security, change the IBM Security Key Lifecycle Manager User password soon after the data migration process.

Backing up IBM Security Key Lifecycle Manager, Version 2.6 data

Use the IBM Security Key Lifecycle Manager, Version 2.7 backup utility to create IBM Security Key Lifecycle Manager, Version 2.6 cross-platform backup files.

Before you begin

You must install IBM Security Key Lifecycle Manager, Version 2.7 on a system. Ensure that the system with IBM Security Key Lifecycle Manager, Version 2.6 with fix pack 2 is available.

About this task

You can use the backup utility to create cross-platform backup files in a manner that is independent of operating systems and directory structure of the server. You can restore these cross-platform compatible backup files on a system with IBM Security Key Lifecycle Manager, Version 2.7 across operating systems.

Procedure

Run the followings steps on systems where the IBM Security Key Lifecycle Manager version 2.7 and version 2.6 are installed.
IBM Security Key Lifecycle Manager, Version 2.7
  1. Log on to the system with your user credentials.
  2. Locate the backup utilities folder.
    Windows
    <SKLM_INSTALL_HOME>\migration\utilities\sklmv26

    Default location is C:\Program Files\IBM\SKLMV27\migration\utilities\sklmv26.

    Linux
    <SKLM_INSTALL_HOME>/migration/utilities/sklmv26

    Default location is /opt/IBM/SKLMV27/migration/utilities/sklmv26.

IBM Security Key Lifecycle Manager, Version 2.6
  1. Log on to the system with your user credentials.
  2. Copy sklmv26 folder from the system where IBM Security Key Lifecycle Manager, Version 2.7 is installed to a local directory of your choice.
  3. Edit backup.properties in the sklmv26 folder to configure properties as shown in the following example. You must set values for all the properties, except for the BACKUP_DIR property (optional).

    If you do not specify the value for BACKUP_DIR, the backup file is created in the backup subfolder under the same directory from where you run the backup utility.

    Note: On Windows operating system, the backup.properties file that you use for backup operations must not contain the property keys and values with leading or trailing spaces.
    Windows
    WAS_HOME=C:\\Program Files (x86)\\IBM\\WebSphere\\AppServer
    BACKUP_PASSWORD=passw0rd123
    DB_PASSWORD=sklmdb2
    WAS_USER_PWD=wasadmin
    BACKUP_DIR=C:\\sklmv26_backup
    Linux
    WAS_HOME=/opt/IBM/WebSphere/AppServer
    BACKUP_PASSWORD=passw0rd123
    DB_PASSWORD=sklmdb2
    WAS_USER_PWD=wasadmin
    BACKUP_DIR=/sklmv26_backup
    Note: On Windows operating system, when you specify path in the properties file, use either "/ " or "\\ " as path separator as shown in following example.
    C:\\sklmv26_backup
    Or
    C:/sklmv26_backup
  4. Open a command prompt and run the backup utility.
    Windows
    Go to the sklmv26 directory (see Step b) and run the following command:
    backupV26.bat
    Linux
    Go to the sklmv26 directory (see Step b) and run the following command:
    backupV26.sh

What to do next

  • Review the directory that contains backup files to ensure that the backup file exists. The backup files are created in the location that you specified for BACKUP_DIR in the backup.properties file.
  • Check the backup.log file for errors or exceptions. The backup.log file is created in the same directory where you run the backup utility. For a successful backup operation, ensure that there are no errors or exceptions in the log file.
  • Retain the backup password for future use in case you restore the backup.
  • Do not edit a file in the backup archive. The file that you attempt to edit becomes unreadable.

Restoring IBM Security Key Lifecycle Manager, Version 2.6 backup files

You can restore the IBM Security Key Lifecycle Manager, Version 2.6 cross-platform backup files on a system with IBM Security Key Lifecycle Manager, Version 2.7 by using the graphical user interface, command-line interface, REST interface, or the migration restore script.

Before you begin

Install IBM Security Key Lifecycle Manager, Version 2.7 on a system. You must have the backup file from the earlier version and ensure that you have the password that you used when the backup file was created.
Note: You must have IBM Security Key Lifecycle Manager User role to run the backup and restore operations.

About this task

You can restore IBM Security Key Lifecycle Manager, Version 2.6 cross-platform compatible backup files on a system with IBM Security Key Lifecycle Manager, Version 2.7 across operating systems.

Before you start a restore task, isolate the system for maintenance. Take a backup of the existing system. You can later use this backup to bring the system back to original state if any issues occur during the restore process. IBM Security Key Lifecycle Manager server automatically restarts after the restore process is complete. Verify the environment before you bring the IBM Security Key Lifecycle Manager server back into production.

Note: For greater security, change the IBM Security Key Lifecycle Manager User password soon after the data migration process.

Procedure

  1. Log on to the system where IBM Security Key Lifecycle Manager, Version 2.7 is installed.
  2. Copy the backup file, for example sklm_v2.6.0.2_20160429013250-0400_migration_backup.jar, from version 2.6 system to a directory of your choice.
  3. Restore the backup file by using any of the following methods.
    Graphical user interface
    1. Log on to the graphical user interface as an authorized user, for example, SKLMAdmin.
    2. On the Welcome page, click Backup and Restore.
    3. In the Backup repository location field, specify full path of the directory that contains the version 2.6 backup file. To locate the directory, click Browse.
    4. Click Display Backups to display the backup files that you want to restore.
    5. In the Backup and Restore table, select a backup file.
    6. Click Restore From Backup.
    7. On the Restore Backup page, specify the backup password that you used to create the backup file.
    8. Click Restore Backup.
    9. Restart IBM Security Key Lifecycle Manager server.
    Note: By using the graphical user interface, you cannot restore roles, users, and groups from IBM Security Key Lifecycle Manager, Version 2.6 backup.
    Command-line interface
    1. Go to the WAS_HOME/bin directory. For example,
      Windows
      cd drive:\Program Files\IBM\WebSphere\AppServer\bin
      Linux
      cd /opt/IBM/WebSphere/AppServer/bin
    2. Start the wsadmin interface by using an authorized user ID, such as SKLMAdmin. For example,
      Windows
      wsadmin.bat -username SKLMAdmin -password mypwd -lang jython
      Linux
      ./wsadmin.sh -username SKLMAdmin -password mypwd -lang jython
    3. Run the tklmBackupRunRestore CLI command by specifying the parameters such as the backup file name with its full path and backup password that you used to create the backup as shown in the following example.
      print AdminTask.tklmBackupRunRestore 
      	('[-backupFilePath /opt/mysklmbackups/sklm_v2.6.0.2_20160429013250-0400_migration_backup.jar 
      		-password myBackupPwd]')
    4. Restart IBM Security Key Lifecycle Manager server.
    Note: By using the command-line interface, you cannot restore roles, users, and groups from IBM Security Key Lifecycle Manager, Version 2.6 backup.
    REST interface
    1. Open a REST client.
    2. Obtain a unique user authentication identifier to access IBM Security Key Lifecycle Manager REST services. For more information about the authentication process, see Authentication process for REST services.
    3. To invoke Backup Run Restore REST Service, send the HTTP POST request with backup file name with its full path and backup password as parameters. Pass the user authentication identifier that you obtained in Step b along with the request message as shown in the following example.
      POST https://localhost:<port>/SKLM/rest/v1/ckms/restore
      Content-Type: application/json
      Accept: application/json
      Authorization: SKLMAuth authId=139aeh34567m
      Accept-Language: en
      {"backupFilePath":"/opt/mysklmbackups/sklm_v2.6.0.2_20160429013250-0400_migration_backup.jar
      backup.jar","password":"myBackupPwd"}
    4. Restart IBM Security Key Lifecycle Manager server.
    Note: By using the REST interface, you cannot restore roles, users, and groups from IBM Security Key Lifecycle Manager, Version 2.6 backup.
    Migration restore script
    1. Locate the IBM Security Key Lifecycle Manager restore utilities.
      Windows
      <SKLM_INSTALL_HOME>\migration\utilities\sklmv26

      Default location is C:\Program Files\IBM\SKLMV27\migration\utilities\sklmv26.

      Linux
      <SKLM_INSTALL_HOME>/migration/utilities/sklmv26

      Default location is /opt/IBM/SKLMV27/migration/utilities/sklmv26.

    2. Edit restore.properties in the sklmv26 folder to configure properties as shown in the following example.
      Note: On Windows operating system, the restore.properties file that you use for restore operations must not contain the property keys and values with leading or trailing spaces.
      Windows
      WAS_HOME=C:\\Program Files\\IBM\\WebSphere\\AppServer
      JAVA_HOME=C:\\Program Files\\IBM\\WebSphere\\AppServer\\java\8.0
      BACKUP_PASSWORD=passw0rd123
      DB_PASSWORD=sklmdb27
      RESTORE_FILE=C:\\sklmv26_restore\\sklm_v2.6.0.2_20160429013250-0400_migration_backup.jar
      WAS_USER_PWD=wasadmin
      Linux
      WAS_HOME=/opt/IBM/WebSphere/AppServer
      JAVA_HOME=/opt/IBM/WebSphere/AppServer/java/8.0
      BACKUP_PASSWORD=passw0rd123
      DB_PASSWORD=sklmdb27
      RESTORE_FILE=/sklmv26_restore/sklm_v2.6.0.2_20160429013250-0400_migration_backup.jar
      WAS_USER_PWD=wasadmin
      Note: On Windows operating system, when you specify path in the properties file, use either "/ " or "\\ " as path separator as shown in the following example.
      C:\\sklmv26_restore
      Or
      C:/sklmv26_restore
    3. Open a command prompt and run the restore utility.
      Windows
      Go to the <SKLM_INSTALL_HOME>\migration\utilities\sklmv26 directory and run the following command:
      restoreV26.bat
      Linux
      Go to the <SKLM_INSTALL_HOME>/migration/utilities/sklmv26 directory and run the following command:
      restoreV26.sh
    4. Restart IBM Security Key Lifecycle Manager server.
    Note: By using the migration restore script, you can restore roles, users, and groups from IBM Security Key Lifecycle Manager, Version 2.6 backup.

What to do next

Rollovers that are configured for LTO key groups and 3592 certificates are not automatically restored from the earlier versions of IBM Security Key Lifecycle Manager. You must manually set the rollover for certificates and key groups.

For more information, see Restoring rollover certificates and key groups.