There are several ways to assign a certificate. You can assign the certificate at the same time you request it (through the Requestaction), at the time you import it (through either the ImportResponseaction or the ImportPFXoption), or at a later time (through the Assignaction). If you choose to immediately assign the certificate to a server during a request or import action, you need to set two additional parameters with the appropriate action: /Assignand /Components.

Parameter Description

/Assign

New in Office Communications Server 2007 R2. Specifies whether the issued certificate should be assigned immediately. This parameter is available only when /onlineis set to True (the default).

/Components

New in Office Communications Server 2007 R2. Specifies the Edge Server to which the certificate should be assigned. This is a comma-separated list, specifying one or more of the following options:

APAccess Proxy or Access Edge Server

DPData Proxy or Web Conferencing Edge Server

MRMedia Relay or A/V Edge Server

INTERNALEdge Server internal interface (default)

To assign a certificate at the time it's requested, set the /Assignparameter to True, and specify a comma-separated list of servers to which the certificate is to be assigned. Note that the /Onlineparameter must also be set to True, which is the default for that parameter.

A Requestaction with immediate assignment might look like this.

Copy Code
LCSCmd.exe /Cert /Action:Request /OU:Marketing /Org:Contoso
/sn:eepool1.contoso.com /country:US /city:Redmond /state:Washington
/assign:TRUE /Components:AP,MR /ca:contoso.com\contoso-CA

The /Assignand /Componentsparameters are identical for the ImportResponseand ImportPFXactions.

If you choose to assign a certificate at a later time, use the Assignaction. Here is the syntax of the Assignaction of the Cert context.

Copy Code
LCSCmd /Cert /Action:Assign /issuer:<the issuer of the
certificate> [/subjectName:<subject name of the
certificate>] [/serialNumber:<serial number of the
certificate>] [/Components:<AP | DP | MR | INTERNAL>]
[/L:<log file path>] [/XML:[TRUE|FALSE]]

Here is an example showing a certificate assignment:

Copy Code
LCSCmd /Cert /Action:Assign /issuer:contoso.com
/subjectName:Pool01-Certificate /Components:AP,MR

Where:

Parameter Description

/Cert

Executes the selected certificate task on the current computer.

/Action

Takes a string that specifies the action name. Valid action names include Request, CheckStatus, ImportResponse, ImportPFX, ExportPFX, ListCA, and ImportCAChain.

/issuer

Specifies the common name of the issuer.

/subjectName

Specifies the subject name of the certificate.

/serialNumber

Specifies the serial number of the certificate.

/Components

New in Office Communications Server 2007 R2. Specifies the Edge Server to which the certificate should be assigned. This is a comma-separated list, specifying one or more of the following options:

APAccess Proxy or Access Edge Server

DPData Proxy or Web Conferencing Edge Server

MRMedia Relay or A/V Edge Server

INTERNALEdge Server internal interface (default)

/L

Specifies the log file path. If not specified, %TEMP%\<ActionName>[<Date>][<Time>].html is used. To disable logging, use a dash character (-) as the log file name.

/XML

Specifies whether the log file to be generated should be in XML format instead of HTML.

/?

Shows Help on usage.