Creates a new certificate entry for the specified Queue Agent
POST/qsystem/rest/config/agent/:agentId/security/certificate
Creates a new certificate entry for the specified Queue Agent. This call only works on distributed Queue Agents with version 3.2 or higher. The fields 'fullDistinguishedName' and 'alias' are mandatory, the 'subjectAlternateName' field is optional. Use 'subjectAlternateName' if the certificate shall be valid for more than one hostname. The new entry will be saved as an alias with the base name from the 'alias' parameter, suffixed with a timestamp, in order to avoid collisions.
Example:
curl -i -X POST -u user:password -H 'Content-Type: application/json' -d '{
"subjectAlternateName":"127.0.0.1",
"fullDistinguishedName":"CN=192.168.13.37,OU=RND,O=QMATIC,C=SE",
"alias":"myAgentAlias"
}'
http://ip:port/qsystem/rest/config/agent/{agentId}/security/certificate
E.g. this new entry will be saved as 'myAgentAlias-2017-04-10T12:47:53'
Request
Responses
- 201