cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

FaqOwnKeystoreForWebStart

I want to use my own keystore when signing a Java project for Java WebStart deployment

By default a Java project for WebStart deployment is signed by a generated key saved in a keystore created just for the one project in the build folder.

If you have your own keystore you can use it instead to sign project JARs when building a JNLP-capable project. To do so you need to open nbproject/private/private.properties in the Files tab and add the following properties:

jnlp.signjar.keystore=<location of the keystore on disk>
jnlp.signjar.storepass=<valid store password>
jnlp.signjar.keypass=<valid key password>
jnlp.signjar.alias=<valid alias>

and provide correct values, of course. (The current default build scripts do not support asking for the password interactively, though you could do this using a custom target in build.xml using the <input> task.)

Then if you check the Self-signed checkbox in the project's customizer panel it will use the keystore provided by you to sign project JAR files.


Applies to: NetBeans 6.x


The above directions do not seem to work for NetBeans IDE 6.5 - Toph 20090520

The above directions DID WORK with NetBeans IDE 6.7.1 - bdschubert 20090925