Chapter 21. HTTP Client

Chapter 21. HTTP Client

21.1. Syntax

The HTTP Client utility, HttpClient, sends a CMC request (created with the CMC Request utility) or a PKCS #10 request to a CA.

21.1. Syntax

This utility takes a single .cfg configuration file as a parameter. The syntax is as follows:

HttpClient /path/to/file.cfg

The .cfg file has the following parameters:

Parameters Description
host The hostname for the Certificate System server. For example: host=server.com
port The port number for Certificate System server. For example: port=1028
secure true for an HTTPS connection, false for an HTTP connection. For example: secure=true
input The full path and filename for the enrollment request, which must be in binary format. For example: input=cmcReqCRMFBin
output The full path and filename for the response in binary format. For example: output=cmcResp
dbdir The full path to the directory where the cert8.db, key3.db, and secmod.db databases are located. This parameter is ignored if secure=false. For example: dbdir=/usr/bin
clientmode true for client authentication, false for no client authentication. This parameter is ignored if secure=false. For example: clientmode=true
password The password for the cert8.db database. This parameter is ignored if secure=false and clientauth=false. For example: password=redhat
nickname The nickname of the client certificate. This parameter is ignored if clientmode=false. For example: nickname=CS Agent-102504a's 102504a ID
servlet The URI of the servlet that processes full CMC requests. The default value is /ca/profileSubmitCMCFull. For example: servlet=/ca/profileSubmitCMCFull

Table 21.1.