Resolve JNLP Security Warning because applets are based on JNLP display, applets require considerable permissions on client operations, and only the security mechanism of the JDK can be modified to enable applets to manipulate local files. 1, using the Keytool tool to generate a key library
To execute a command in a DOS window:
Keytool-genkey-keystore Mytest.store-alias mbq-validity 3650
Note: Mytest.store is the name of your key library, you can modify the suffix, please do not modify. MBQ is an alias, this can also be changed to its own name
2. Use the Keytool tool to export the certificate used in the signature
To execute a command in a DOS window:
Keytool-export-keystore Mytest.store-alias Mbq-file Mbq.cert
Note: Mytest.store is the second-generation KeyStore name, MBQ is also the alias we specify in the second step
Mbq.cert for us to generate the name of the certificate, you can modify the name, note the suffix do not change
3. Use Jarsigner tool to sign jar compressed document
To execute a command in the current DOS window:
Jarsigner-keystore Mytest.store Mytest.jar MBQ
Note: Mytest.store is the key library name that we generated in step two
Mytest.jar is our first step. Compressed Jar Documentation
MBQ is the name of the provider that we set here for our Alias
4, the Security certificate import/Remove Java Cacerts Certificate Library
1), under the C:\Program files\java\jdk1.6.0_24\jre\lib\security catalogue;
2), add the certificate:
1, any directory, but the premise is jdk in%java_home%:
Keytool-import-v-trustcacerts-alias appletbest1-file "C:\Users\Desktop\Applet\HolleWorld\Net\mbq.cert"-storepass Changeit-keystore "%java_home%\jre\lib\security\cacerts"
2, under the jdk\jre\lib\security\ execution:
Keytool-import-alias Applettest1-keystore Cacerts-file C:\Users\Desktop\Applet\HolleWorld\Net\mbq.cert- Trustcacerts
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.