Configuring encryption support
Content Manager OnDemand for i depends on the IBM i operating system for cryptographic support.
IBM i has a repository for master keys which are used to encrypt other keys, and keystore files to store encrypted keys. See the topic titled Cryptographic services key management in IBM Documentation for IBM i for more information and instructions for creating and managing these files.
Content Manager OnDemand for i requires that a keystore file exist on your IBM i server. If you do not have a keystore file, a new one must be created. Since encryption must be turned on explicitly for an individual instance, it makes sense that the keystore file for an instance be in the instance library.
The following steps are required to enable encryption for an instance. Instance name
QUSROND
is used in all the examples, but the examples will work for any
instance if you replace QUSROND
with your instance name.
If you do not have a master key, you must create one and then set the master key.
- Hover over the Security icon in the IBM Navigator for i window to display the Security menu.
- Select Cryptographic Services Key Management.
- Select Manage Master Keys.
- Select the Master Key.
- Select Load part from the Actions menu.
- Specify the Passphrase and click OK.
ADDMSTPART MSTKEY(1) PASSPHRASE('My Passphrase')
- Hover over the Security icon in the IBM Navigator for i window to display the Security menu.
- Select Cryptographic Services Key Management.
- Select Manage Master Keys.
- Select the Master Key.
- Select Set from the Actions menu to set the master key.
SETMSTKEY MSTKEY(1)
The next step is to create a keystore file. You can create as many keystore files as desired.
When you create a keystore file by
using the IBM Navigator for i interface, it is automatically added to your list of managed keystore
files. It is recommended that the keystore file for an instance be in that instance library. For
example, the keystore file for the QUSROND
instance would be in the
QUSROND
library.
- Hover over the Security icon in the IBM Navigator for i window to display the Security menu.
- Select Cryptographic Services Key Management.
- Select Manage Cryptographic Keystore Files.
- Click Create Keystore from the Actions menu.
- Enter the Keystore name for the new keystore you want to create and specify the Library in which you want to create the new keystore.
- Enter the Description of the new keystore that you want to create.
- Enter the Master key that you want to be associated with the new keystore file.
- Set the Public authority to Exclude.
- Click OK.
CRTCKMKSF KEYSTORE(QUSROND/KEYSTORE) MSTKEY(1) AUT(*EXCLUDE) TEXT('Keystore for instance QUSROND')
GRTOBJAUT OBJ(QUSROND/KEYSTORE) OBJTYPE(*FILE) USER(QUSROND) AUT(*ALL)
/qsys.lib/qrdars.lib/arssockd.pgm -I instanceName -d "keystore_location=instanceName/keyStoreFile,keystore_mkl=*"
QUSROND
instance:
/qsys.lib/qrdars.lib/arssockd.pgm -I qusrond -d “keystore_location=QUSROND/KEYSTORE,keystore_mkl=*"
keystore_type=PKCS12
keystore_location=QUSROND/KEYSTORE
keystore_mkl=ONDEMAND_QUSROND_QRDARS400_2017-01-27-16.50.23.063912
keystore_mkl_dt=2017-01-27 10:50:23.063912
The steps to configure encryption for an instance are now complete. No encryption will be performed until it is enabled in a Content Manager OnDemand application group.