createcert (create certificate)
Create a self-signed certificate for a queue manager.
Purpose
You can use the createcert command to create a self-signed certificate and add it to the key repository of a specified queue manager. The certificate data is extracted from the newly created certificate and placed in a file.
Syntax
Parameters
- -m QMgrName
- Specifies the name of the queue manager for which the self-signed certificate is created.
- -dn DistinguishedName
- Specifies the X.500 distinguished name that uniquely identifies the certificate.
- -label Label
- Specifies the label that is associated with the certificate.
- -sig_alg HashAlgorithm
- Specifies the signing algorithm that is used to create the signature that is associated with the new self-signed certificate.
- -size KeySize
- Specifies the size of the new key pair.
- -expire Days
- Specifies the expiration time of the certificate, in days.
- -format ascii|binary
- Specifies the format of the output file.
- -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 target file name is generated based on the label that is specified in the command. The file name is displayed when the command completes.
Examples
- The following command creates a certificate for queue manager
QM1, with a distinguished name of:CN=John Smith,O=IBM,OU=Test,C=GB
createcert -m QM1 -dn "CN=John Smith,O=IBM,OU=Test,C=GB"
