It's not a secret anymore!
The moose likes Security and the fly likes how do i programmatically create a keystore and import my certificate into it? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "how do i programmatically create a keystore and import my certificate into it?" Watch "how do i programmatically create a keystore and import my certificate into it?" New topic
Author

how do i programmatically create a keystore and import my certificate into it?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
My app can be used two ways:
1. in regular Java Apps
2. In a web App
In both cases, whether or not there is security depends on whether the app (web or other app) that is using my code has turned security on. So I need to be able to execute whether or not security is on. As well, keytool (the usual way of creating a keystore and importing your certificate) is not included in the simple JRE install. So when my app installs itself, it needs a way to create a keystore, import the cert and help the user add the keystore and "grant" to their policy file. Anyone know how to do this?
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
Anyone interested, I got the answer:
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how do i programmatically create a keystore and import my certificate into it?
 
Similar Threads
SSL issues with cacerts (-trustcacerts option)
Question for deployment: Does JRE Install include keytool, etc?
Java Keystore
ssl configuration in tomcat
Importing Certificate into JAVA Keystore