Keytool-genkey-keystore appletname. Store-alias appletnamecert
Jarsigner-keystore appletname. Store appletname. Jar appletnamecert
8. c: \> keytool-genkey-keystore applet. Store-alias Applet
9. Enter the keystore password: 123456
10. What is your first name and last name?
11. [UNKNOWN]: XXX
12. What is the name of your organization?
13. [UNKNOWN]: XXX
14. What is your organization name?
15. [UNKNOWN]: XXX
16. What is the name of your city or region?
17. [UNKNOWN]: XXX
18. What is the name of your state or province?
19. [UNKNOWN]: Sh
20. What is the two-letter country code for this unit?
21. [UNKNOWN]: CH
22. cn = xxx, ou = xxx, O = xxx, L = SH, St = SH, c = CH?
23. [No]: Y
24.
25. Enter the <APPLET> Primary Password
26. (If the password is the same as the keystore password, press Enter ):
27.
28. c: \> keytool-export-keystore applet. Store-alias applet-file applet. Cer
29. Enter the keystore password: 123456
30. Authentication stored in the file <APPLET. Cer>
31.
32. c: \> jarsigner-keystore applet. Store test. Jar Applet
33. Enter the password phrase of the keystore: 123456
34.
35. Warning: the signatory certificate will expire within six months.
36. c: \>
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C: \ Documents ents and Settings \ zzx> Cd ..
C: \ Documents ents and Settings> Cd ..
C: \> keytool-genkey-keystore applet. Store-alias Applet
Enter the keystore password: 123456
What is your first name and last name?
[UNKNOWN]: XXX
What is the name of your organization?
[UNKNOWN]: XXX
What is your organization name?
[UNKNOWN]: XXX
What is the name of your city or region?
[UNKNOWN]: XXX
What is the name of your state or province?
[UNKNOWN]: Sh
What is the two-letter country code for this unit?
[UNKNOWN]: CH
CN = xxx, ou = xxx, O = xxx, L = SH, St = SH, c = CH is correct?
[No]: Y
Enter the <APPLET> Primary Password
(If the password is the same as the keystore password, press Enter ):
C: \> keytool-export-keystore applet. Store-alias applet-file applet. Cer
Enter the keystore password: 123456
Authentication stored in the file <APPLET. Cer>
C: \> jarsigner-keystore applet. Store test. Jar Applet
Enter the password phrase of the keystore: 123456
Warning the signatory certificate will expire within six months.
C: \>
In this way, the test. jar package is digitally signed. If other packages are used, you only need to execute the last step in the same way!