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
Parameters
- -m QMgrName
- Specifies the name of the queue manager for which the certificate is added.
- -label Label
- Specifies the label that is associated with the certificate.
- -file FileName
- Specifies the file that contains the certificate.
- -format ascii|binary
- Specifies the format of the certificate.
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, entermqcli
on the command line. To exit the IBM MQ administration mode, enterexit
on the command line.
Examples
- The following command adds a CA certificate from file
CA.pem
, with a label ofCACert
to the key repository for the queue managerQM1
:addcert -m QM1 -file CA.pem -label CACert