From a66ef4094d32ee13d64bb63139fe3cb33c3a04dc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 26 May 2016 15:19:50 +0100 Subject: [PATCH] JAL-1400 JAL-2089 allow configurable signature algorithms JAL-1400 JAL-2089 update developer docs for webstart testing --- build.xml | 11 ++++++++--- doc/building.html | 35 ++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/build.xml b/build.xml index 57cd9d2..a8b8928 100755 --- a/build.xml +++ b/build.xml @@ -27,7 +27,9 @@ - + + + @@ -88,6 +90,9 @@ + + + @@ -374,7 +379,7 @@ - @@ -382,7 +387,7 @@ - + diff --git a/doc/building.html b/doc/building.html index 3a39691..2371c89 100755 --- a/doc/building.html +++ b/doc/building.html @@ -46,23 +46,24 @@ build target in ant to make the signed jar files in a directory called dist. But first you need to make your own key:

Making your own key

-

The ant 'makefulldist' target assumes that a keystore exists in a -directory 'keys'. To make a key accessible using the default settings -in the build.xml file then make the keys directory and add the -jarsigner key with the following : -

-
-mkdir keys
-keytool -genkey -keystore keys/.keystore -keypass alignmentisfun
--storepass alignmentisfun -alias jalview
- (you will have to answer some personal questions here)
-ant makedist
- (should eventually generate a Jalview.jnlp file
-  in ./dist along with a set of signed jars using the jalview
-  key)
-
- -

+

The ant 'makefulldist' target assumes that a keystore exists in + a directory 'keys'. To make a key accessible using the default + settings in the build.xml file then make the keys directory and add + the jarsigner key with the following :

+
mkdir keys
+
keytool -genkey -keystore keys/.keystore -keypass alignmentisfun
+  -storepass alignmentisfun -sigalg SHA1withRSA -keyalg RSA -alias jalview
+ (you will have to answer some personal questions here) +
ant makedist -DWebStartLocation="file://.pathtojalviewsource./dist" -Dapplication.codebase="*"
+

This should eventually generate a jalview.jnlp file in ./dist + along with a set of signed jars using the jalview key). In order to + test locally via webstart you'll now need to add 'file:/' to your + java webstart security exception list. Then:

+
javaws file://.pathtojalviewsource./dist/jalview.jnlp
+

Please remember to remove that entry afterwards, since it will leave + your system vulnerable to malicious code. +

+

Building the JalviewLite applet
The JalviewLite applet is compiled using a subset of the packages in the src directory (specifically: MCView, and jalview.{datamodel, -- 1.7.10.2