1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Exporting a Certificate Authenticating Your Public Key
Suppose you have used the jarsigner @
http://java.sun.com/javase/6/docs/tooldocs/solaris/jarsigner.html
tool to sign a Java ARchive (JAR) file. Clients that want to use the
file will want to authenticate your signature.
One way they can do this is by first importing your public key cer‐
tificate into their keystore as a "trusted" entry. You can export
the certificate and supply it to your clients. As an example, you
can copy your certificate to a file named MJ.cer via the following,
assuming the entry is aliased by "mykey":
keytool -exportcert -alias mykey -file MJ.cer
Given that certificate, and the signed JAR file, a client can use
the jarsigner tool to authenticate your signature. |