Use the generate command to generate a private key and public key pair with a self-signed certificate or a certificate sign request.
generate command syntax
OneCli.exe config generate<setting> --file<exportfilename>[--output<folder>] [connection option]
Parameter | Required/Optional | Notes |
---|---|---|
setting | Required | Certificate management setting |
--file | Required |
|
--output | Optional | By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/. |
connection option | Optional |
|
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 generate command
OneCli.exe config generate IMM.SSL_HTTPS_SERVER_CERT --file template.xml --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 generated successfully!