How do I sign my jar files?
I found myself having a .spc and a .pvk file, but how do I use those for signing a JAR file?
This is how I did:
I found myself having a .spc and a .pvk file, but how do I use those for signing a JAR file?
This is how I did:
- Open the console
- Type pvkimport (download from http://office.microsoft.com/downloads/2000/pvkimprt.aspx)
- Follow the onscreen wizard
- A pck file was created
- Now we need to know the alias that corresponds to this file
- Type keytool -list -storetype pkcs12 -keystore mycredentials.pfx
- You will see an output like this
Keystore type: pkcs12
Keystore provider: SunJSSE
Your keystore contains 1 entry
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, May 14, 2007, keyEntry,
Certificate fingerprint (MD5): hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh:hh
- The alias is the "xxxxxxxx-xxxx-..." part
- Sign your JARs using
jarsigner -storetype pkcs12 -keystore mycredentials.pfx file.jar "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

0 Comments:
Post a Comment
<< Home