10. Log in as root, and set the file user and group to the Certificate System user and group.
su
chown user:group old.txt
11. Log out as root. As the Certificate System user, change the permissions on the file.
chmod 00600 old.txt
12. Convert the old.txtfile to LDIF.
a.
Open the text to version directory in the new Certificate System migration directory.
cd /usr/share/rhpki/migrate/TxtTo72
b.
Edit the run.sh script; 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 command to use the old.txt file to create an LDIF file.
run.sh /opt/redhat-ds/slapd-DS-instance/ldif/old.txt >
/opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
13. Import the old.ldif LDIF file into this new Certificate System server instance's internal database.
a.
Open the new Certificate System's database directory.
cd /opt/redhat-ds/slapd-DS-instance/db
b.
Use the ldif2db to import the old LDIF file into the new Certificate System database. The internal database
name for the Certificate System instance is in the internaldb.database parameter in the CS.cfg file.
For example:
ldif2db -n server.example.com-rhpki-ca
-i /opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
c.
Force the virtual list views (VLV) indexes to be re-indexed.
db2index
9. Migrating Internal Databases for 6.2
9. Migrating Internal Databases for
6.2
Databases