users@glassfish.java.net

Problem importing a certificate

From: <Vince.Power_at_medavie.bluecross.ca>
Date: Mon, 8 Jun 2009 13:16:57 -0300

So I have two GlassFish installs, one is GlassFish ESB and one is
GlassFish Enterprise.

I can successfully export a certificate from GlassFish Enterprise and
import it into GlassFish ESB, but when I go the other way it fails.

First I export the s1as certificate from the GlassFish ESB instance which
seems to work fine:
$ /usr/java/latest/bin/keytool -importkeystore -srckeystore
/opt/sun/glassfish/domains/domain1/config/keystore.jks -destkeystore
/tmp/new_name_for_s1as.p12 -srcstoretype JKS -deststoretype PKCS12
-srcstorepass changeit -deststorepass changeit -srcalias s1as -destalias
new_name_for_s1as -noprompt

And when I list the contents it looks fine
$ $ keytool -list -storetype PKCS12 -keystore /tmp/new_name_for_s1as.p12 |
grep PrivateKey
Enter keystore password: changeit
new_name_for_s1as, Jun 8, 2009, PrivateKeyEntry,

But when I import the key into GlassFish Enterprise using pk12util it
shows up inside the keystore with the following alias
"CN=bclx115.atl.bluecross.ca,OU=Sun Java System Application Server,O=Sun
Microsystems,L=Santa Clara,ST=California,C=US"

How do I force it to use the nickname or alias?

Thanks,
Vince


-----------------------------------------------------------------------
This communication, including any attached documentation, is intended only for the person or entity to which it is addressed, and may contain confidential, personal, and/or privileged information. Any unauthorized disclosure, copying, or taking action on the contents is strictly prohibited. If you have received this message in error, please contact us immediately so we may correct our records. Please then delete or destroy the original transmission and any subsequent reply. Thank you.

La présente communication, y compris toute pièce qui y a été jointe, est destinée uniquement à la personne ou à l’entité à laquelle elle a été adressée, et contient des renseignements à caractère confidentiel et personnel. Toute diffusion ou reproduction non autorisée ou toute intervention entreprise relativement à son contenu est strictement interdite. Si vous avez reçu ce message par erreur, veuillez nous le signaler immédiatement afin que nous puissions effectuer la correction à nos dossiers. Veuillez par la suite supprimer ou détruire le contenu de la transmission originale ainsi que toute réponse ultérieure. Merci.
-----------------------------------------------------------------------