This article explains the procedure to update the machine SSL certificate using cert-management.sh,
a new certificate management utility introduced in VCF Usage Meter 9.1.
VCF Usage Meter 9.1
In VCF Usage Meter 9.0, certificate-related procedures were performed following the instructions in VCF Usage Meter Certificate Management.
Starting with VCF Usage Meter 9.1, a newly introduced certificate management utility, cert-management.sh, allows you to execute these procedures interactively.
The procedure to update the machine SSL certificate for the Usage Meter appliance is as follows::
[email protected] [ ~ ]$ stop.sh All
[email protected] [ ~ ]$ cert-management.sh
[email protected] [ ~ ]$ cert-management.shWelcome to VCF Usage Meter's certificate management! Available operations: 1. Import certificate into Usage Meter's truststore (establish a trust between the certificate and the Usage Meter appliance). Either provide full path to the certificate or provide server's IP and port to obtain it dynamically. 2. Replace Usage Meter's certificate with a new self-signed certificate (effectively regenerates the current certificate). 3. Replace Usage Meter's certificate with a custom certificate. Need to provide full paths to following files: signed certificate and certificate's private part. 4. Remove certificate from Usage Meter's truststore by alias. 5. List all of the certificates from the Usage Meter's truststore.
Select the operation to perform (1, 2, 3, 4 or 5): <==== Enter 2
Configure the displayed options as follows:
Note: If you do not need to change the default values, leave the field blank and press Enter to proceed.
Available key algorithms: 1. RSA 2. ECSelect key algorithm (default 1 - RSA): <==== !!!Enter key length for RSA (2048-8192 bits, default 4096): <==== !!!Enter validity period in days (default 730): <==== !!!Available signature algorithms for RSA keys: <==== !!! 1. SHA256withRSA 2. SHA384withRSA 3. SHA512withRSASelect signature algorithm (default 1 - SHA256withRSA): <==== !!!
Configuration: Key Algorithm: RSA Key Length: 4096 bits Validity Period: 730 days Signature Algorithm: SHA256withRSA
Note: The update is complete when the following output is displayed.Generating new self-signed certificate for Usage Meter...INFO: Backing up existing keystoreBacking up existing keystore DONEINFO: Updating existing certificate aliasUpdating existing certificate alias == DONEINFO: Generating 4096-bit RSA key pairGenerating 4096-bit RSA key pair ====== DONEINFO: Generating self-signed certificateGenerating self-signed certificate = DONEINFO: Creating new keystoreCreating new keystore == DONEINFO: Cleaning up backup certificateCleaning up backup certificate = DONEINFO: Setting keystore permissionsSetting keystore permissions = DONE
Note: A reboot is required for the new certificate to take effect.Reboot is required after replacing UM certificate. Reboot now (y/n): <=== Enter y