The Applet digital signature in Java2 _ MySQL

Source: Internet
Author: User
My project is to use APPLET to create a real-time message queue monitoring program. because local resources are involved, the APPLET must be digitally signed and authenticated. My environment is windows, the application server is WEBLOGIC6.0, and the development environment is JBUILDER4.0. Previously, I reminded you to pay attention to the concepts of server and client. Those files should be digitally signed on the server applet

My project is to use APPLET to create a real-time message queue monitoring program. because local resources are involved, the APPLET must be digitally signed and authenticated. My environment is windows, the application server is WEBLOGIC6.0, and the development environment is JBUILDER4.0. Previously, I reminded you to pay attention to the concepts of server and client. The files should be on the server and those files should be on the client.

First, use JRE1.3.0 _ 01 (JAVA Runtime Environment 1.3.0.1) on the client to replace IE's JVM (JAVA virtual machine. JAVA. SUN. download on the COM website. after the download is completed, install it on the client first. the installation process is very simple.

In the HTML file of the APPLET called on the server side, you also need to include it so that the JRE client is not installed in advance to download the code. for details, go to the next step;

The procedure is as follows:

Server:

1. decompress all the package files required by the program (I will use the JMS package of WEBLOGIC here to use the command jar xf weblogicc. jar), and then use the JDK packaging command to compile the monitoring program. class and the decompressed package are packaged into a package. (If I have already put the monitoring program and the unwrapped package in the same directory), they are all commands in the dos state. for specific commands, see the bin directory of jdk1.3 (1.2,

The command is as follows:

Jar cvf monitor. jar *. class

This command generates a package named monitor. jar.

2. create the keystore and keys for the package file (monitor. jar) you just created. Here, the keystore will be used to store the authentication of the key (private keys) and the public key, and the alias here is monitor.

The command is as follows:

Keytool-genkey-keystore monitor. keystore

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.