addcert (add certificate)

Add the public part of a certificate to the keystore of a specific queue manager.

Purpose

You can use the addcert command to add the public part of a certificate to the key repository of a specified queue manager.

Syntax

Read syntax diagramSkip visual syntax diagram addcert -m QMgrName -label Label -file FileName -formatascii|binary

Parameters

-m QMgrName
Specifies the name of the queue manager for which the certificate is added.
The queue manager must exist.
-label Label
Specifies the label that is associated with the certificate.
For more information about valid syntax for the certificate label, see Digital certificate labels, understanding the requirements in the IBM® MQ documentation.
-file FileName
Specifies the file that contains the certificate.
This file must be available on the appliance. The file must be located in mqpubcert:///.
-format ascii|binary
Specifies the format of the certificate.
The default value is ascii.

Usage notes

  • This command must be run from the IBM MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes mq. To enter the IBM MQ administration mode, enter mqcli on the command line. To exit the IBM MQ administration mode, enter exit on the command line.

Examples

  • The following command adds a CA certificate from file CA.pem, with a label of CACert to the key repository for the queue manager QM1:
    
    addcert -m QM1 -file CA.pem -label CACert
    

Related commands