The ImportCAChainaction is used to import the certificate chain from the certification authority (CA) that issued the certificate. In order for the validity of a certificate to be verified and for the certificate to be assigned or used by Office Communications Server in any way, the root CA certificate must be in Trusted Root Certification Authority. When you import the CA chain, you obtain all CA certificates in the certification path, including the root CA certificate. The ImportCAChainaction requires the following syntax.

Copy Code
LCSCmd.exe /Cert /Action:ImportCAChain /Filename:<file name>
[/L:<log file path>] [/XML[:{TRUE|FALSE}]]
[/?[:{TRUE|FALSE}]]

Such as:

Copy Code
LcsCmd.exe /Cert /Action:ImportCAChain /Filename:Certfile.p7b

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 file to which you want to export the certificate chain.

/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.