Java Deployment Rule set .
1. Receive old “DeploymentRuleset.jar” file from wcm team .
2. Extract the jar file by “jar -xvf DeploymentRuleset.jar”
3. The extracted files will looks like below .
4. Delete the “META-INF” folder and “DeploymentRuleset.jar”
5. Open “ruleset.xml” and change the java version which your organization is using currently like
below.
6.
7. Package the ruleset.xml in a jar file naming “DeploymentRuleset.jar” by the command “jar -cvf
DeploymentRuleset.jar *”
8. In the command prompt, run the command below to create the keystore and key.
“keytool -genkey -alias server -keyalg RSA -keysize 4096 -keystore
keystore.jks”
9. Enter the information below, as prompted.
Internal to Wipro
This command creates a Java Keystore file called keystore.jks.
10. In the command prompt, run the command below to generate the CSR from the keystore.
This command creates a private key and a CSR and saves them as a .jks file. and as
a .csr file.
“keytool -certreq -alias server -file csr.csr -keystore
keystore.jks”
Enter keystore password:
The password is the same password that you used in Step 9
11. Provide the csr and JKS file with AD team and ask them to provide certificate chain which will
have all certificates from CA root in a “.p7b” format like below.
12. Now copy the below files in a one folder
DeploymentRuleset.jar
Keystore.jks
Certnew.pb7
Like below.
Internal to Wipro
13. Open command prompt and go inside the folder under which the files are copied with the below
command .
“CD <foldername with path>”
14. Run the below command to include the pb7 file into the Jks keystore file .
15. After the pb7 file is imported run the below command to sign the jar file .
Here in two command server is the alias name which is provided in step 8.
16. You will see the another jar file like below .
Provide this jar file to WCM team .
Internal to Wipro