Converting a key repository on AIX, Linux, and Windows
Use this procedure to convert a key repository to a different type.
You can convert a key repository password to a different type by using the runmqakm or runmqktool (keytool) commands.
Using runmqakm
Issue the following command to convert a key repository with the runmqakm command:
runmqakm -keydb -convert -db filename -pw password
-new_db filename -new_pw password
-old_format type -new_format typewhere:- -file filename
- Specifies the fully qualified file name of the key repository.
- -pw password
- Specifies the password for the key repository.
- -new_db filename
- Specifies the fully qualified file name of the new key repository.
- -new_pw password
- Specifies the password for the new key repository.
- -old_format type
- Specifies the current type of the key repository. The following values can be specified:
- pkcs12
- cms
- -new_format type
- Specifies the new type of the key repository. The following values can be specified:
- pkcs12
- cms
![[MQ 9.4.0 Jun 2024]](ng940.gif)
![[MQ 9.4.0 Jun 2024]](ng940cd.gif)
Using runmqktool
Issue the following command to convert a key repository with the runmqktool command:
runmqktool -importkeystore -srckeystore filename -destkeystore filename
-srcstoretype type -deststoretype type
-srcstorepass password -deststorepass passwordwhere:- -all
- Specifies that the password is also changed for all entries that are protected with the same password as the key repository.
- -keystore filename
- Specifies the fully qualified file name of the key repository.
- -destkeystore filename
- Specifies the fully qualified file name of the new key repository.
- -srcstoretype type
- Specifies the key repository type.
- -deststoretype type
- Specifies the new key repository type. The value can be one of the following values:
- pkcs12
- jks
- jceks
- -srcstorepass password
- Specifies the password for the key repository.
- -deststorepass password
- Specifies the password for the new key repository.
For more information about these parameters and the values that can be specified:
- For version IBM® MQ 9.4.3 and earlier, see importkeystore.
From IBM MQ 9.4.4, see The keytool Command.