Subject: sign a plug-in 1. 3 version of Java applets (Author: Landscape welcome to reprint! Haha !~! @ # $ % ^ &*)
Date: Sat, 14 Apr 2001 13:33:24 + 0800
From: "Landscape" <wflm@263.net>
Newsgroups: ChinaFCU. JAVA
Sign a plug-in 1. 3 version of Java applets (Author: shanshui welcome to reprint haha !~! @ # $ % ^ &*)
To sign a small program, you need to complete the following tasks:
1. Signature Tool
2. One RAS keypair and one public key certificate chain.
3. Package all the class files used by the applet into a JAR file.
Signature Tool
There are currently two tools that support signing plug-in applets
1. Jarsigner -- 2 can be found in jdk. A signature provided by Netscape Signing Tool.
A tool used to sign applets used in the Web browser. The latest version can be
Download http://developer.netscape.com/software/signedobj/jarpack.html
Note: Wangjing no longer provides download of old signature tools
RSA Certificate
The RSA certificate must be purchased from a CA that supports RAS. Such as Thawte
To use the RSA certificate to sign your applet, You need to obtain the Java code signature certificate from Thawte or other cas.
Books. When you register your certificate, you may need to provide the certificate signature request file (CSR). You can use the following
Steps:
---------------------------------------------------------
1. Use keytool to create an RSA keypair
2. C:> C: jdk1.3inkeytool-genkey-keyalg rsa-alias MyCert
3. Enter keystore password: ********* file: // Enter your keystore password
4. What is your first and last name? File: // enter your information
[Unknown]: XXXXXXX YYY
5. What is the name of your organizational unit?
6. [Unknown]: Java Software
7. What is the name of your organization?
8. [Unknown]: Sun Microsystems
9. What is the name of your City or Locality?
10. [Unknown]: Cupertino
11. What is the name of your State or Province?
12. [Unknown]: CA
13. What is the two-letter country code for this unit?
14. [Unknown]: US
15. Is <CN = xxxxxxx yyy, OU = Java Software, O = Sun Microsystems, L = Cupertino,
ST = CA, C = US> correct?
16. [no]: yes file: // confirm and end with y
17. Enter key password for <MyCert> file: // Enter your key password. If you press the Enter password and