This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180083 - MakeJNLP task - unable to set keystore type for jar signing during creating webstart app.
Summary: MakeJNLP task - unable to set keystore type for jar signing during creating w...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 07:06 UTC by jisl
Modified: 2013-11-21 16:48 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
MakeJNLP patch for setting keystore type (518 bytes, patch)
2010-02-01 07:06 UTC, jisl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jisl 2010-02-01 07:06:41 UTC
Created attachment 93715 [details]
MakeJNLP patch for setting keystore type

When building webstart application using nbm-maven-plugin we got error during signing jars. Problem is, that our keystore is of type "pkcs12" and we are not able to set this type of keystore. Default store type "jks", set in file JAVA_HOME/jre/lib/security/java.security under key keystore.type, is used instead. But it is impossible to change default keystore type in all JDK installations. 

nbm-maven-plugin uses MakeJNLP task, which doesn't support setting keystore type. But MakeJNLP taks uses SignJar task, which supports setting keystore type.


Solution:
Introduce new setter setStoreType in MakeJNLP, which sets keystore type using SignJar task's setter setStoretype.

Simple patch attached.
Comment 1 Jesse Glick 2010-09-21 20:36:51 UTC
core-main #563c9a51573c
Comment 2 Quality Engineering 2010-09-23 03:00:22 UTC
Integrated into 'main-golden', will be available in build *201009230000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/563c9a51573c
User: Jesse Glick <jglick@netbeans.org>
Log: #180083: ability to set keystore type for JAR signing.
Comment 3 unai 2013-11-21 16:48:44 UTC
NB 7.4:
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format

Any chance to be able to select pkcs12 in the Project Properties GUI? (Under Build->Deployment)