Making Java Applet signature (old quadratic articles, but just use yesterday)

xiaoxiao2021-03-06  88

Transfer from: http://tech.163dz.com/java/040329,153323.html

Make Java Applet signature verification

2004-03-29 15:33:23

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: After signature Java small program results: After signing, the client can automatically download the Java applet, and the Java applet can access any resource of the client: (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) If you need it as needed, finally confirm: y (3) Export CHINANI.CER Digital Certificate

Keytool -Export-Keystore chinani.Store -Alaias chinani -file chinani.cer

Password: 123456 (input as needed) (4) Signing Test.jar files

Jarsigner -keystore chinani.store test.jar chinani

Password: 123456 (Enter it according to need) Finally write an HTML file, run this file to automatically download and install the Java applet

转载请注明原文地址:https://www.9cbs.com/read-105779.html

New Post(0)