createcertrequest (create certificate request)
Create a certificate request for a queue manager, or for replication links..
Purpose
You can use the createcertrequest command to create a certificate request for a specified queue manager, or for the replication links used by HA, DR, or DR/HA queue managers.
Syntax
Parameters
- -m QMgrName
- Specifies the name of the queue manager for which the certificate request is created.
-replication- Specifies that the certificate request is being created for the replication link of an HA, DR, or DR/HA queue managers. The same certificate is used for all HA, DR, or DR/HA queue managers on an appliance.
- -dn DistinguishedName
- Specifies the X.500 distinguished name that uniquely identifies the certificate.
- -label Label
- Specifies the label that is associated with the certificate request.
- -sig_alg HashAlgorithm
- Specifies the signing algorithm that is used to create the signature that is associated with the new certificate.
- -size KeySize
- Specifies the size of the new key pair.
- -ku Usage
- Specifies a list of valid uses for the certificate.
- -eku Usage
- Specifies a list of valid uses for the certificate.
- -san_dnsname DNSNames
- Specifies the Subject Alternative Name (SAN) DNS names for the certificate that is created.
- -san_ipaddr IPAddresses
- Specifies the Subject Alternative Name (SAN) IP addresses for the certificate that is created.
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, entermqclion the command line. To exit the IBM MQ administration mode, enterexiton the command line. - The certificate request file name is generated based on the label that is specified in the command. The file name is displayed when the command completes.
The createcertrequestcommand validates that the subject matches the appliance name, that is, theCN(common name) within the supplied-dn. If the HA group has been configured with a name, the command automatically specifies SAN DNS names consisting of the appliance name and the HA group name.
Examples
- The following command creates a certificate request for queue manager
QM2, with a distinguished name of:CN=Jane Smith,O=IBM,OU=Test,C=US
createcertrequest -m QM2 -dn "CN=Jane Smith,O=IBM,OU=Test,C=US"
