Use the import command to import a certificate into an IMM. You can only import a CA-signed certificate into the HTTPS Server Certificate Management section.
import command syntax
OneCli.exe config import<setting> --file<importfilename>[--output<folder>] [connection option]
Parameter | Required/Optional | Notes |
---|---|---|
setting | Required | Certificate management setting |
--file | Required | Import 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 import command
OneCli.exe config import IMM.SSL_HTTPS_SERVER_CERT --file temp.cert --imm USERID:PASSW0RD@10.240.252.102
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 imported successfully!