Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

How to Update vCloud Usage Meter Web Portal Certificate (53517)

Last Updated: 3/28/2018Categories: How toTotal Views: 25Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Purpose

How to Update vCloud Usage Meter Web Portal Certificate with self signed certificates

Resolution

1. Add the keytool command directory on your path by running the command:

# export PATH=$PATH:/usr/java/latest/bin

2. Change directory to /home/usgmtr/ by running the command:

# cd /home/usgmtr/

3. Backup the existing .keystore file by running the command:

# cp .keystore .keystore.bak

4. Create a new key to be used to generate a new CSR (Certificate Signing request) by running the command:

# keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore .keystore

Notes:
•    The keystore password must be silverpen.
•    If the command does not work or you receive the Key Pair already exists error message, delete the existing Tomcat alias from the keystore and re-run the previous genkey command:

# keytool -delete -alias tomcat -keystore .keystore
5. Create the Certificate Signing Request (CSR) by running the command:

# keytool -certreq -alias tomcat -keyalg RSA -file example.com.csr -keystore .keystore

Note: Ensure the CN (Common Name) is either the FQDN or IP address of the Usage Meter server.

6. To generate a certificate on an Internal CA for use with vCloud Usage Meter:

Open the Certificate Signing Request (CSR) and copy the contents to the Internal CA, then obtain the signed public key, with the CA, in BASE64 .P7B format.

Example: Using the Microsoft Windows Certificate Authority

1.    Using a web browser, go to:

https://Internal_Certificate_Authority_URL/certsrv

2.    Under Select a Task, click Request a Certificate.Click Advanced Certificate Request.
3.    Click Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file.
4.    Open the Certificate Signing Request (CSR) file in a plain text editor and copy the contents into the Saved Request section, starting
with:

-----BEGIN CERTIFICATE REQUEST-----
to
-----END CERTIFICATE REQUEST-----.

5.    Under Certificate Template, click Web Server then click Submit. You are shown the download options for the issued certificate.
6.    Click Base 64 Encoded > Download certificate chain.

The certificate to import into the Usage Meter appliance has been generated.
7. Import the certificate into the keystore by running the command:

# keytool -import -trustcacerts -alias tomcat -file certificate_from_ca.p7b -keystore .keystore

You see this confirmation message:

Certificate reply was installed in keystore.

Note: If you are asked if you want to trust the certificate, type y or yes.

8. Assign ownership of the keystore to the usgmtr user by running the command:

# chown usgmtr .keystore

9. Copy the new keystore by running the commands:
# service tomcat stop

10. Backup the existing keystore by running the command:

#  cp /usr/share/tomcat/conf/webserver_certificate.jks /usr/share/tomcat/conf/webserver_certificate.jks.bak

11. Replace the existing keystore with the newly generated one by running the commands:
# cp .keystore /usr/share/tomcat/conf/webserver_certificate.jks

12. Start tomcat service
# service tomcat start

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

KB
•
Downloading and Installing the standalone VMware Remote Console (VMRC) in vSphere (2091284)

VMware vSphere Client download

Results 1-4 of 4

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCloud Usage Meter

Related Versions:

VMware vCloud Usage Meter 3.6.x

Take Our Survey

Support Assistant