HP XP7 PA Software Installation Guide

NOTE: JavaC is required to compile the InstallCert program on the host agent server. When
you compile the program, ensure that it is named as InstallCert.
2. Compile the downloaded java file using the following command:
<%JAVA_HOME%>\bin\javaC InstallCert.java
NOTE: During compilation, if the following exception is displayed at the command prompt
UnsupportedOperationException, perform the following steps:
a. Open the installCert.java file.
b. Navigate and perform the following:
Comment throw newUnsupportedOperationException();.
Add return new X509Certificate[0]
public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
//throw new UnsupportedOperationException();
}
c. Save changes and perform the step again.
3. To retrieve the public key from the HP XP7 Performance Advisor management station and
create a keystore, type:
<%JAVA_HOME%>\bin\java InstallCert
<Fully_Qualified_Name_for_Management_Station>:443
Example of a DNS, abc.domain.company.net.
The following status messages appear while InstallCert creates the Keystore:
Loading KeyStore /opt/java6/jre/lib/security/cacerts...
Opening connection to abc.domain.company.net:443...
Starting SSL handshake...
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1520)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:182)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.
java:975)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.
java:123)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:511)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:449)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.
java:1029)
84 Configuring SSL settings for HP XP7 Performance Advisor