Importing Certificates (Command Line)
The ImportPFX action is used to import a certificate to the local computer. For example, you can import a certificate if you have exported a certificate from another computer and want to use that same certificate on the local computer. The /ImportPFX action requires the following syntax.
LCSCmd.exe /Cert /Action:ImportPFX /Filename:<file name> /Password:<password> [/assign:{TRUE|FALSE}] [/Components:{AP | DP | MR | INTERNAL}] [/exportable[:{TRUE|FALSE}]] [/L:<log file path>] [/XML[:{TRUE|FALSE}]] [/?[:{TRUE|FALSE}]]
Such as:
LcsCmd.exe /Cert /Action:ImportPFX /Filename:C:\ExportedCertificate.pfx /Password:CertPAssw0rd
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. |
/Filename |
Specifies the PFX file containing the certificate and its private key. |
/Password |
Specifies the password for the PFX file. |
/exportable |
Specifies whether the private key should be marked as exportable. If not specified, FALSE is used. |
/assign |
New in Office Communications Server 2007 R2. Specifies whether the issued certificate should be assigned immediately. This parameter is available only when Online is 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: AP Access Proxy or Access Edge Server DP Data Proxy or Web Conferencing Edge Server MR Media Relay or A/V Edge Server INTERNAL Edge 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. |