Red Hat CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE Manual page 173

Hide thumbs Also See for CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE:
Table of Contents

Advertisement

run.sh old_server_root/slapd-old_instance-db/ldif/old.ldif >
old_server_root/slapd-old_instance-db/ldif/old.txt
9.
Open the old LDIF directory, and copy the old.txt file to the new Certificate System server instance internal data-
base LDIF directory.
cd old_server_root/slapd-old_instance-db/ldif
cp old_server_root/slapd-old_instance-db/ldif/old.txt
/opt/redhat-ds/slapd-DS-instance/ldif
10. Log into the new server as the Certificate System user, and open the Certificate System ldif/ directory.
cd /opt/redhat-ds/slapd-DS-instance/ldif
11. Log in as root, and set the file user and group to the Certificate System user and group.
su
chown user:group old.txt
12. Log out as root. As the Certificate System user, change the permissions on the file.
chmod 00600 old.txt
13. Convert the old.txt file to LDIF.
a.
Open the text to version directory.
cd /usr/share/rhpki/migrate/TxtTo72
b.
Edit the run.sh file; uncomment and set the values for the following lines. For example:
SERVER_ROOT=/var/lib
export SERVER_ROOT
INSTANCE=rhpki-ca
export INSTANCE
c.
Run the run.sh tool. The old.txt file is directed to create old.ldif.
run.sh /opt/redhat-ds/slapd-DS-instance/ldif/old.txt >
/opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
14. Import the old.ldif LDIF file into the new Certificate System instance internal database.
a.
Open the new Certificate System database directory.
cd /var/lib/instance_ID/slapd-instance_ID-db
b.
Import the LDIF into the new Certificate System database using the ldif2db utility. The internal database
name for the Certificate System instance is in the internaldb.database parameter in the CS.cfg file.
For example:
4. Migrating Internal Databases for
4.5
167
Chapter 9. Step 6: Migrating Internal

Advertisement

Table of Contents
loading

Table of Contents