digital signature
If the Java applet written by applet If there is no signature, then the access client program will be subject to safety restrictions; how to pay attention to the Java small program signature, there are also these aspects available for reference, but they are not complete Here I give a specific operational document, I hope to give you some help.
Scenario: Test.jar: Java apparatus with signature
Result: After signing, the client can automatically download the Java applet, and the Java applet can access any resources of the client.
step:
(1) Package Java applet
Jar CVF Test.jar Test.class
(2) Generate a keystore named chinani.Store, alias for chinani
Keytool -Genkey-Keystore chinani.Store -Alias chinani
Password: 123456 (input as needed)
The following is input as needed, and finally confirmed: Y
(3) Export Chinani.CER Digital Certificate
Keytool -Export-Keystore chinani.Store -Alaias chinani -file chinani.cer
Password: 123456 (input as needed)
(4) Signature Test.jar files
Jarsigner -keystore chinani.store test.jar chinani
Password: 123456 (input as needed)
Finally write an HTML file, run this file to automatically download and install the Java applet
hEAD>