Java Applet authorization command

Source: Internet
Author: User

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

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.