Skip to main content

Setting up a key repository on UNIX and Windows systems - Middleware News

Setting up a key repository on UNIX and Windows systems - Middleware News


Set up a key repository at both ends of the connection. Use the default certificate stores or create your own. End of change

An SSL connection requires a key repository at each end of the connection. Each WebSphere® MQ queue manager and WebSphere MQ client must have access to a key repository. See The SSL key repository for more information.

On UNIX® and Windows® systems, digital certificates are stored in a key database file that is managed with iKeyman, iKeycmd, or GSKCapiCmd. These digital certificates have labels. A specific label associates a personal certificate with a queue manager or WebSphere MQ client. SSL uses that certificate for authentication purposes. On UNIX and Windows systems, WebSphere MQ uses the ibmwebspheremq prefix on a label to avoid confusion with certificates for other products. The prefix is followed by the name of the queue manager or WebSphere MQ client user logon ID, changed to lower case. Ensure that you specify the entire certificate label in lowercase.
The key database file name comprises a path and stem name:

* On UNIX, the default path for a queue manager (set when you create the queue manager) is /var/mqm/qmgrs//ssl.

On Windows, the default path is install_directory\Qmgrs\\ssl, where install_directory is the directory in which WebSphere MQ is installed. For example, C:\Program Files\IBM\WebSphere MQ\Qmgrs\\ssl .

The default stem name is key. Optionally, you can choose your own path and stem name, but the extension must be .kdb.

If you choose your own path or filename, set the permissions to the file to tightly control access to it.

* For a WebSphere MQ client, there is no default path or stem name. Tightly control access to this file. The extension must be .kdb.

Note that key repositories should not be created on a file system that does not support file level locks, for example NFS version 2 on Linux®.

Changing the key repository location for a queue manager on UNIX or Windows systems tells you about checking and specifying the key database file name. You can specify the key database file name either before or after creating the key database file.

The user ID from which you run iKeyman or iKeycmd must have write permission for the directory in which the key database file is created or updated. For a queue manager using the default SSL directory, the user ID from which you run iKeyman or iKeycmd must be a member of the mqm group. For a WebSphere MQ client, if you run iKeyman or iKeycmd from a user ID different from that under which the client runs, you must alter the file permissions to enable the WebSphere MQ client to access the key database file at run time. For more information, refer to Accessing and securing your key database files on Windows or Accessing and securing your key database files on UNIX systems.


Using iKeyman
==============

Use the following procedure to create a new key database file for either a queue manager or a WebSphere MQ client:

1. Start the iKeyman GUI (using the gsk7ikm command on UNIX, or the strmqikm command on Windows).

2. From the Key Database File menu, click New. The New window is displayed.

3. Click Key database type and select CMS (Certificate Management System).

4. In the File Name field, type a file name. This field already contains the text key.kdb. If your stem name is key, leave this field unchanged. If you have specified a different stem name, replace key with your stem name but you must not change the .kdb.

5. In the Location field, type the path, for example:
* For a queue manager: /var/mqm/qmgrs/QM1/ssl (on UNIX) or C:\Program Files\IBM\WebSphere MQ\qmgrs\QM1\ssl (on Windows)

The path must match the value of the SSLKeyRepository attribute of the queue manager.
* For a WebSphere MQ client: /var/mqm/ssl (on UNIX) or C:\mqm\ssl (on Windows)

6. Click Open. The Password Prompt window displays.

7. Type a password in the Password field, and type it again in the Confirm Password field.

8. Select the Stash the password to a file check box.
Note: If you do not stash the password, attempts to start SSL channels fail because they cannot obtain the password required to access the key database file.

9. Click OK. A window is displayed, confirming that the password is in file key.sth (unless you specified a different stem name).

10. Click OK. The Signer Certificates window is displayed, containing a list of the CA certificates that are provided with iKeyman and pre-installed in the key database.

11. Start of changeRemove these CA certificates by selecting them and clicking Delete.End of change

12. Set the access permissions, as described in Accessing and securing your key database files on Windows or Accessing and securing your key database files on UNIX systems.


Using the command line
======================

Use the following commands to create a new CMS key database file using iKeycmd or GSKCapiCmd:

* On UNIX:

gsk7cmd -keydb -create -db filename -pw password -type cms -expire days
-stash

* On Windows:

runmqckm -keydb -create -db filename -pw password -type cms -expire days
-stash

* Using GSKCapiCmd:

gsk7capicmd -keydb -create -db filename -pw password -type cms -expire days
-stash -fips -strong


where:

-db filename is the fully qualified file name of a CMS key database, and must have a file extension of .kdb.

-pw password is the password for the CMS key database.

-type cms is the type of database (for WebSphere MQ, this must be cms).

-expire days is the expiration time in days of the database password. There is no default time for a database password: use the -expire option to set a database password expiration time explicitly.

-stash tells iKeycmd or GSKCapiCmd to stash the key database password to a file.

-fips disables the use of the BSafe cryptographic library. Only the ICC component is used and this component must be successfully initialized in FIPS mode. When in FIPS mode, the ICC component uses algorithms that have been FIPS 140-2 validated. If the ICC component does not initialize in FIPS mode, the gsk7capicmd command fails.

-strong checks that the password entered satisfies the minimum requirements for password strength. The minimum requirements for a password are as follows:

* The password must be a minimum length of 14 characters.
* The password must contain a minimum of one lower case character, one upper case character, and one digit or special character. Special characters include the asterisk (*), the dollar sign ($), the number sign (#) and the percent sign (%). A space is classified as a special character.
* Each character can only occur a maximum of three times in a password.
* A maximum of two consecutive characters in the password can be identical.
* All characters described above are in the standard ASCII printable character set within the range from 0x20 to 0x7E inclusive.

Comments

adsrerrapop

Popular posts from this blog

IBM Websphere MQ interview Questions Part 5

MQ Series: - It is an IBM web sphere product which is evolved in 1990’s. MQ series does transportation from one point to other. It is an EAI tool (Middle ware) VERSIONS:-5.0, 5.1, 5.3, 6.0, 7.0(new version). The currently using version is 6.2 Note: – MQ series supports more than 35+ operating systems. It is platform Independent. For every OS we have different MQ series software’s. But the functionality of MQ series Default path for installing MQ series is:- C: programfiles\BM\clipse\SDK30 C: programfiles\IBM\WebsphereMQ After installation it will create a group and user. Some middleware technologies are Tibco, SAP XI. MQ series deals with two things, they are OBJECTS, SERVICES. In OBJECTS we have • QUEUES • CHANNELS • PROCESS • AUTHENTICATION • QUERY MANAGER. In SERVICES we have LISTENERS. Objects: – objects are used to handle the transactions with the help of services. QUEUE MANAGER maintains all the objects and services. QUEUE: – it is a database structure

IBM Websphere MQ Reason code list / mq reason codes / websphere mq error codes / mq error messages

Reason code list ================= The following is a list of reason codes, in numeric order, providing detailed information to help you understand them, including: * An explanation of the circumstances that have caused the code to be raised * The associated completion code * Suggested programmer actions in response to the code * 0 (0000) (RC0): MQRC_NONE * 900 (0384) (RC900): MQRC_APPL_FIRST * 999 (03E7) (RC999): MQRC_APPL_LAST * 2001 (07D1) (RC2001): MQRC_ALIAS_BASE_Q_TYPE_ERROR * 2002 (07D2) (RC2002): MQRC_ALREADY_CONNECTED * 2003 (07D3) (RC2003): MQRC_BACKED_OUT * 2004 (07D4) (RC2004): MQRC_BUFFER_ERROR * 2005 (07D5) (RC2005): MQRC_BUFFER_LENGTH_ERROR * 2006 (07D6) (RC2006): MQRC_CHAR_ATTR_LENGTH_ERROR * 2007 (07D7) (RC2007): MQRC_CHAR_ATTRS_ERROR * 2008 (07D8) (RC2008): MQRC_CHAR_ATTRS_TOO_SHORT * 2009 (07D9) (RC2009): MQRC_CONNECTION_BROKEN * 2010 (07DA) (RC2010): MQRC_DATA_LENGTH_ERROR * 2011 (07DB) (RC2011): MQRC_DYNAMIC_Q_NAME_ERROR * 2012 (07DC) (RC201

IBM WebSphere MQ – Common install/uninstall issues for MQ Version on Windows - Middleware News

Creating a log file when you install or uninstall WebSphere MQ WebSphere MQ for Windows is installed using the Microsoft Installer (MSI). If you install the MQ server or client through launchpad , MQPARMS or setup.exe , then a log file is automatically generated in %temp% during installation. Alternatively you can supply parameters on the installation MSI command msiexec to generate a log file, or enable MSI logging system-wide (which generates MSI logs for all install and uninstall operations). If you uninstall through the Windows Add/Remove programs option, no log file is generated. You should either uninstall from the MSI command line and supply parameters to generate a log file, or enable MSI logging system-wide (which generates MSI logs for all install and uninstall operations). For details on how to enable MSI logging, see the following article in the WebSphere MQ product documentation: Advanced installation using msiexec For details on how to enable system-w