5.5

Table Of Contents
Table 54. Cell Management Tool Options and Arguments, generate-certs Subcommand (Continued)
Option Argument Description
--keystore-pwd (-w)
keystore-password Password for the keystore on this
host.
--expiration (-x)
days-until-expiration Number of days until the
certificates expire. Defaults to 365
Example: Creating Self-Signed Certificates
Both of these examples assume a keystore at /tmp/cell.ks that has the password kspw. This keystore is
created if it does not already exist.
This example creates the new certificates using the defaults. The issuer name is set to CN=Unknown. The
certificate uses 1024-bit encryption and expires one year after creation.
[root@cell1 /opt/vmware/vcloud-
director/bin]# ./cell-management-tool generate-certs -o /tmp/cell.ks -w kspw
New keystore created and written to /tmp/cell.ks.
This example creates the new certificates using custom values for key size and issuer name. The issuer name
is set to CN=Test, L=London, C=GB. The certificate uses 2048-bit encryption and expires 90 days after creation.
[root@cell1 /opt/vmware/vcloud-
director/bin]# ./cell-management-tool generate-certs -o /tmp/cell.ks -w kspw
-i "CN=Test, L=London, C=GB" -s 2048 -x 90
New keystore created and written to /tmp/cell.ks.
Recovering the System Administrator Password
If you know the vCloud Director database username and password, you can use the recover-password
command of the cell management tool to recover the vCloud Director system administrator password.
With the recover-password command of the cell management tool, a user who knows the vCloud Director
database username and password can recover the vCloud Director system administrator password.
To recover the system administrator password, use a command line with the following form:
cell-management-tool recover-password options
Table 55. Cell Management Tool Options and Arguments, recover-password Subcommand
Option Argument Description
--help (-h)
None Provides a summary of available
commands in this category.
--dbuser
The user name of the
vCloud Director database
user.
Must be supplied on the command
line.
--dbpassword
The password of the
vCloud Director database
user.
Prompted for if not supplied.
Chapter 5 Cell Management Tool Reference
VMware, Inc. 53