jnlp - issues in Signing a jar in java : public key issue -
i working on 1 swing application , want make "web start" need sign jar
for this, followed following steps : 1. create key store file using following command
keytool -genkey -keystore mykeystore -alias myself keytool -selfcert -alias myself -keystore mykeystore enter keystore password:
keytool -list -keystore mykeystore enter keystore password:
keystore type: jks keystore provider: sun
your keystore contains 1 entry
myself, aug 7, 2013, privatekeyentry, certificate fingerprint (sha1): 9a:cd:47:d2:9d:51:f4:5a:56:fb:5c:27:7b:e6:03:ee: 65:70:f7:7b
private key genarated above successfully.
2.
jarsigner -keystore mykeystore "c:..\myapp.jar" sourabh enter passphrase keystore:
jarsigner: certificate chain not found for: sourabh. sourabh must reference v alid keystore key entry containing private key , corresponding public key ce rtificate chain.
it showing above error.
issue 1: can public key?
i googled it. information there public key not information creating. how can generate application.
issue 2 : if moving application online server (e.g. apache derver) need copy keystore file also>?
- you need specify same alias jarsigner tool. used 'myself' when building keystore: use again.
- definitely not. contains private key. keep private.
Comments
Post a Comment