Generating a Java Keystore and Public/Private Key Pair
Before you use the P6 EPPM Web Services encryption and digital signatures features you need to generate a public/private key pair.
To generate a Java keystore and public/private key pair
First, make sure that you are using the supported JDK version for this release. Refer to the Tested Configurations document for supported version information. Next, ensure that the bin folder of the JDK is set to your system path. Then perform the following steps:
- On the Web Server where P6 EPPM Web Services is deployed, open a command prompt and run the keytool command using the following as an example:
keytool -validity 3600 -genkey -keyalg RSA -alias mykeys -keystore keystore.jks
If necessary, modify the preceding command for your environment.
- Enter the appropriate information as prompted by the system prompts. For example:
keystore password: demo123
first and last name: demo user
organizational unit: demo org
organization: demo
city: demo city
state: demo state
country code: us
Type yes when prompted if the information is correct.
Press enter when prompted to enter a key password (do not enter anything)Notes:
- The proceeding responses are for example purposes only. Substitute the appropriate responses for your environment.
- After performing the steps above your keystore will be generated in the location specified in step 1. The keystore contains the private key that will be used by P6 EPPM Web Services and the public key that will be used by the client. The P6 EPPM Web Services demo application is an example of a client that can be set up to use a public key.
- Typically you will need to export the certificate containing the public key from the keystore and import that public key into a keystore accessible by the client. For the sake of clarity, this procedure documents how to use the same keystore for both the client and P6 EPPM Web Services.
- Copy the keystore to a location that is accessible by P6 EPPM Web Services and the P6 EPPM Web Services client application. The P6 EPPM Web Services Demo program is a client application. If P6 EPPM Web Services is on a different machine than P6 Professional, copy the keystore to both machines.
Related Topics
What's New In P6 EPPM Web Services
Demonstration Applications (On-Premises only)
Configure P6 EPPM Web Services to Use Username Token with Encryption and Digital Signatures
Handling the Apache CXF Java Client Timeout
Last Published Friday, February 9, 2024