/
README.signing
26 lines (16 loc) · 1.06 KB
/
README.signing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Applet using smartcardio API has to be signed. You can use a self-signed certificate.
keytool -genkey -alias signFiles -keystore signing-jar.keystore \
-keypass <keypass> -dname "cn=<Your Name>" -storepass <storepass>
keytool -selfcert -alias signFiles -keystore signing-jar.keystore \
-keypass <keypass> -storepass <storepass>
Now create a signed applet JAR:
mvn -Djarsigner.storepass="<storepass>" install
The self-signed certificate is not accepted as Signer CA so there will be a warning
dialog. In the future Java releases self-signed certificates may not be accepted
depending on the security level settings in the Java Control Panel.
You can export and set your self-signed certificate as Signer CA.
keytool -export -alias signFiles -file cert.crt -keystore signing-jar.keystore \
-storepass <storepass>
Now open Java Control Panel (from the Java JRE path), in the Security tab click
the Manage Certificates... button. In the drop down select the Signer CA type
and click the Import button to load cert.crt file you have expored.