1 | For MeV to work as a Java Webstart application, the JAR |
---|
2 | files in the ./resources/jar must be signed. The currently |
---|
3 | checked in JAR files have already been signed, so there is |
---|
4 | no need to do this again unless MeV itself needs to be |
---|
5 | updated. In that case, the new JAR files need to be signed. |
---|
6 | Since this is a somewhat complex task, we have tried to make |
---|
7 | easier. |
---|
8 | |
---|
9 | Follow this procedure: |
---|
10 | |
---|
11 | 1. Delete all the existing JAR files in the ./resources/jar |
---|
12 | directory. |
---|
13 | 2. Copy all JAR files from the MeV distribution into the |
---|
14 | ./resources/jar directory |
---|
15 | 3. Run 'ant signjars' (*) |
---|
16 | 4. Commit the changes to the subversion repository. |
---|
17 | |
---|
18 | -------------------------------------------------------- |
---|
19 | * There is currently a problem with the 'magetab-parser.jar' file. |
---|
20 | It contains identical copies of several files and the signing tool |
---|
21 | doesn't allow this. To fix it simple extract the 'magetab-parser.jar' |
---|
22 | file to a temporary directory and then immediately repackage everything |
---|
23 | and replace the original 'magetab-parser.jar' file. |
---|
24 | -------------------------------------------------------- |
---|
25 | |
---|
26 | Note! |
---|
27 | |
---|
28 | JAR files that have already been signed by another |
---|
29 | authority should not be re-signed. This needs to be specified |
---|
30 | as an exclustion in build.xml. Locate the <fileset> tag |
---|
31 | inside the <target name="signjars"> target and add the |
---|
32 | exceptions to the "excludes" attribute. |
---|
33 | ---------------------------------------------------------- |
---|
34 | |
---|
35 | Note! |
---|
36 | |
---|
37 | The mev-base.key is the self-signed certificate that we have |
---|
38 | used to sign the JAR files. It has the following properties: |
---|
39 | |
---|
40 | Alias: mev-base |
---|
41 | Password: mev-base |
---|
42 | Name: BASE Development team |
---|
43 | Organizational unit: BASE Development team |
---|
44 | Organization: Lund University |
---|
45 | City: Lund |
---|
46 | State: Sweden |
---|
47 | Country code: SE |
---|
48 | |
---|
49 | To re-generate the keystore execute the following command: |
---|
50 | |
---|
51 | keytool -genkey -validity 1000 -alias mev-base -keypass mev-base -keystore mev-base.key |
---|
52 | --------------------------------------------------------------- |
---|
53 | |
---|