Use the export command to export a selected certificate or certificate sign request (CSR) file. The export command generates a binary file that is saved in the current directory.
export command syntax
OneCli.exe config export<setting> --file<exportfilename>[--output<folder>] [connection option]
Parameter | Required/Optional | Notes |
---|---|---|
setting | Required | Certificate management setting |
--file | Required | Export file name |
output | Optional | By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/. |
connection option | Optional |
|
Additional information
IMM.SSH_SERVER_KEY=*generate IMM.SSL_HTTPS_SERVER_CERT=*generate=import=export IMM.SSL_HTTPS_SERVER_CSR=*generate=export IMM.SSL_LDAP_CLIENT_CERT=*generate=import=export IMM.SSL_LDAP_CLIENT_CSR=*generate=export IMM.SSL_SERVER_DIRECTOR_CERT=*generate=import=export IMM.SSL_SERVER_DIRECTOR_CSR=*generate=export IMM.SSL_CLIENT_TRUSTED_CERT1=*import=export=deletecert IMM.SSL_CLIENT_TRUSTED_CERT2=*import=export=deletecert IMM.SSL_CLIENT_TRUSTED_CERT3=*import=export=deletecert
Example of the export command
OneCli.exe config export IMM.SSL_HTTPS_SERVER_CERT --file temp.cert --imm USERID:PASSW0RD@10.240.252.102This is the output generated from this example:
Lenovo ToolsCenterSuite CLI tcliXXX-X.X.X
Based on module version X.X.X
Licensed Materials - Property of Lenovo
(C) Copyright Lenovo Corp. 2013-2016 All Rights Reserved
Invoking SHOW command ...
Connected to IMM by IP address 10.240.252.102
Waiting for command completion status.
Certificate was exported successfully!