IBM – Websphere MQ
To generate a CSR, you first need to create a key pair for your server. These two items are a digital certificate key pair and cannot be separated. If you lose your public/private key file or your password and generate a new one, one, your SSL Certificate will no longer match and a replacement has to be made.
Geotrust recommends that you contact IBM for additional information.
NOTE: A key length of 1024 bit is the default, but Geotrust recommends the use of a 2048 bit key.
If the request is intended for an Extended Validation certificate or a certificate with a validity period beyondDecember 31, 2013, the 2048 bit key length will need to be selected.
- Start the iKeyman graphical user interface (GUI) using either the gsk7ikm command (UNIX) or the strmqikm command (Windows).
Note: To use the iKeyman GUI, be sure that your machine can run the X Windows system. - Be sure to set the following:
- Set the DISPLAY environment variable. For example: export DISPLAY=mypc:0.
- Ensure that the user’s path contains /usr/bin.
- Set the JAVA_HOME environment variable:
1. AIX: export JAVA_HOME =/usr/mqm/ssl/jre
2. HP-UX: export JAVA_HOME =/opt/mqm/ssl
3. Linux: export JAVA_HOME =/opt/mqm/ssl/jre
4. Solaris: export JAVA_HOME =/opt/mqm/ssl
Step 2: Setting up a key repository.
- Open the iKeyman GUI, or use the UNIX or Windows command line to do one of the following:Using the iKeyman GUI:
Choose New from the Key Database File menu. Click Key database type, and select CMS. Type values forFile Name and Location, and set a password.Using iKeycmd (UNIX command line):
Use these commands:
gsk7cmd -keydb -create -db filename -pw password -type cms -expire days –stashUsing iKeycmd (Windows command line):
Use these commands:
runmqckm -keydb -create -db filename -pw password -type cms -expire days –stash where:- -db filename is the fully qualified name of a CMS key database, with an extension .kdb.
- -pw password is the password for the CMS key database, with an extension .cms.
- -type cms is the type of database.
- -expire days is the expiration time in days of the database password. The default is 60 days.
- -stash tells iKeycmd to stash the key database password to a file.
On Windows, the key database file (.kdb) is created with read permission for all user IDs, so it is not necessary to change permissions. On UNIX, .kdb and .sth files are created. Access permissions for the key database file are set to give access only to the user ID from which you used iKeyman or iKeycmd.
- If you are running UNIX, run chmod to give access to an MCA. For example:
- chmod g+r /var/mqm/qmgrs/QM1/ssl/key.kdb
- chmod g+r /var/mqm/qmgrs/QM1/ssl/key.sth
- If you are running a queue manager, change the key repository location. For example:
- ALTER QMGR SSLKEYR (‘/var/mqm/qmgrs/QM1/ssl/MyKey’)
Step 3: Generating a CSR.Using the iKeyman GUI
- Start the iKeyman graphical user interface (GUI) using either the gsk7ikm command (UNIX) or the strmqikm command (Windows).
- In the iKeyman GUI, choose Open from the Key Database File menu. Click Key database type, and selectCMS.
- Click Browse to navigate to the directory containing the key database files.
- Select the appropriate key database file, for example key.kdb.
- Click Open.
- Type the key database password and click OK.
- Click New Certificate Request from the Create menu.
- Type the following in the Key Label field:
- For a queue mananger, ibmwebspheremq followed by the name of your queue manager (in lowercase). For example, for QM1, type ibmwebspheremqqm1.
- For a WebSphere MQ client, ibmwebspheremq followed by your logon user ID (in lowercase). For example, ibmwebspheremqmyuserid.
- Type values for Common Name, Organization, Organizational Unit, City/Locality, State/Province and select a Country from the list.
- For Enter the name of a file in which to store the certificate request, either accept the default certreq.arm, or type a new pathname.
- Click OK. When the confirmation window displays, click OK again.
- The file you created contains the CSR. Submit the CSR.
Using iKeycmd (command line interface)
- To generate a CSR in iKeycmd (using UNIX command line), use these commands:
- gsk7cmd -certreq -create -db filename -pw password -label label -dn distinguished_name -size key_size-filefilename
To generate a CSR in iKeycmd (using Windows command line), use these commands:
- runmqckm -certreq -create -db filename -pw password -label label -dn distinguished_name -size key_size-filefilename
where:
- -db filename is the fully qualified name of a CMS key database, with an extension .kdb.
- -pw password is the password for the CMS key database, with an extension .cms.
- -label label is the key label attached to the certificate.
- -dn distinguished_name is the X.500 distinguished name enclosed in double quotes. Note that only the CN, O, and C attributes are required, and that you can supply only one OU attribute.
- -size key_size is the key size. We recommend that you make this value 2048
- -file filename is the filename for the certificate request.
- The file you created contains the CSR. Submit the CSR.