If you do not already have an SSL certificate, you can generate one using the keytool command. This procedure explains how to generate a self-signed certificate and install it in the keystore.
Follow these steps:
cd installDirectory/PerformanceCenter/jetty/etc
mv installDirectory/PerformanceCenter/jetty/ etc/keystore installDirectory/PerformanceCenter/ jetty/etc/keystore.bak
Important! You must remove the old keystore. If you do not, an error appears in later steps: "Keystore was tampered with, or password was incorrect."
keytool -genkeypair -keystore keystore_file.ks -storepass storepasswd -keyalg RSA -keysize 2048 -keypass keypasswd -alias alias_name
Specifies the password for the keystore.
Specifies the password for the private key within the keystore.
Important! Remember these passwords—they cannot be recovered.
keytool -exportcert -keystore keystore_file.ks -storepass storepasswd -alias alias_name -file filename.cer
Specifies an alias that can be used to refer to the keystore entry that will be created to contain the keys.
Determines the file to which the certificate is exported. We recommend using a full pathname that does not place the file in the current directory.
Example: /tmp/capcCert.cer.
Note: We recommend backing up the cacerts file before continuing.
keytool -importcert -keystore installDirectory/jre/lib/security/cacerts -storepass cacertspasswd -alias capcSelfSigned -file filename.cer
Note: The default password for the cacerts keystore is "changeit."
Specifies the password for the cacerts keystore.
Default: changeit
The file to which the certificate was exported in a previous step.
keytool -storepasswd -keystore installDirectory/jre/lib/security/cacerts
You are prompted to provide the existing password and the new password.
keytool -list -keystore installDirectory/jre/lib/security/cacerts
Important! To enable the web services, the self-signed certificate must be in the cacerts keystore. Otherwise, you see an error in the log that reports that PKIX did not find a certificate.
/sbin/service caperfcenter_sso restart
/sbin/service caperfcenter_devicemanager restart
/sbin/service caperfcenter_console restart
Your self-signed SSL certificate is generated and installed in the keystore.
Next steps:
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|