[Solved] Java - DeploymentRuleSet - Certificate importing

Status
Not open for further replies.

brink668

Wise, Aged Ars Veteran
147
Hi,

In order to improve Java Security I have been able to successfully create and sign our "DeploymentRuleSet.jar" app to be deployed to our machines. However, rules are not enforced unless I go to Configure Java on the client machine and import the certificate into the Signer CA.

I am a little confused on how this works and was wondering if anyone knew how to import the certificate into the Java Certificate Manager. Also, does anyone know how to programmatically import the certificate into this Java location? Or possibly tell Java to look at our Trusted Certificate list in windows instead?

What I have:
-PFX (chained with Private/Public Key and Certificate)
-used openssl to convert pfx to .p12 file



lApwCjg.png
 

brink668

Wise, Aged Ars Veteran
147
It turns out I had to import the Root and Intermediate certificates.

Code:
keytool -import -v -file root.cer -alias AlisaName1 -keystore "C:\Program Files (x86)\Java\jre7\lib\security\cacerts" -storepass changeit -noprompt

Code:
keytool -import -v -file inter.cer -alias AliaName2 -keystore "C:\Program Files (x86)\Java\jre7\lib\security\cacerts" -storepass changeit -noprompt
 

Rubeast

Seniorius Lurkius
2
Sorry to dig this up. But I have a related question.

I use following code to import a self signed certificate:

Code:
keytool -import -v -file C:\certificate.crt -alias Alias1 -keystore "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs"  -storepass pwd -noprompt

This gives me a "Certificate was added to the keystore" message and it appears under JAVA > Security > Certificates
But only under Trusted Certificates
I want it to appear only under Signer CA

How can I accomplish this? Do I need an other type of certificate?
 
Status
Not open for further replies.