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!
Author: oscar999