NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en: http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com.
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂ­tulo en concreto puede realizar una donación directa mediante Paypal:
Export the Public Key Certificate (The Java™ Tutorials > Security Features in Java SE > Exchanging Files)
Trail: Security Features in Java SE
Lesson: Exchanging Files
Section: Steps for the Contract Sender
Export the Public Key Certificate
Home Page > Security Features in Java SE > Exchanging Files
Export the Public Key Certificate
You now have a signed JAR file sContract.jar. Recipients wanting to use this file will also want to authenticate your signature. To do this, they need the public key that corresponds to the private key you used to generate your signature. You supply your public key by sending them a copy of the certificate that contains your public key. Copy that certificate from the keystore stanstore to a file named StanSmith.cer via the following:
keytool -export -keystore stanstore -alias signLegal -file StanSmith.cer
You will be prompted for the store password (balloon53).

Once they have that certificate and the signed JAR file, your recipient can use the jarsigner tool to authenticate your signature. See Steps for the Contract Receiver.

Previous page: Sign the JAR File
Next page: Steps for the Contract Receiver