[simon@localhost individuell uppgift]$ keytool -genkey
Enter keystore password:  
Re-enter new password: 
What is your first and last name?
  [Unknown]:  Simon
What is the name of your organizational unit?
  [Unknown]:  
What is the name of your organization?
  [Unknown]:  
What is the name of your City or Locality?
  [Unknown]:  
What is the name of your State or Province?
  [Unknown]:  
What is the two-letter country code for this unit?
  [Unknown]:  SE
Is CN=Simon, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=SE correct?
  [no]:  yes

Enter key password for <mykey>
        (RETURN if same as keystore password):  





[simon@localhost individuell uppgift]$ jar cf0 Test.jar *.class *.data java.policy.applet




[simon@localhost individuell uppgift]$ jarsigner -signedjar SignedTest.jar Test.jar mykey
Enter Passphrase for keystore: 

Warning: 
The signer certificate will expire within six months.
[simon@localhost individuell uppgift]$ 
