Now you are ready to sign the JAR file. Type the following in your command window to sign the JAR fileCount.jar
, using the private key in the keystore entry aliased bysignFiles
, and to name the resulting signed JAR filesCount.jar
:You will be prompted for the store password (jarsigner -keystore susanstore -signedjar sCount.jar Count.jar signFilesab987c
) and the private key password (kpi135
).
Note: Thejarsigner
tool extracts the certificate from the keystore entry whose alias issignFiles
and attaches it to the generated signature of the signed JAR file.