trust the server's certificate

hello

I have a certificate already generate by the server and I do not know its alias, how I can make:

- to export the server certificate from the certs keystore.

with keytool:

keytool -export -keystore "java.home"/lib/security/cacerts -alias jamie -file server.cer

but I had the error: alias does not exist.

somebody will be able to give me an indication thank you .

[411 byte] By [salim1981a] at [2007-11-27 5:16:28]
# 1
You can always use the "keytool -list" to print all the aliases in a keystore.BTW, are you sure your certificate is inside "java.home"/lib/security/cacerts? That's the root CA collections comes with the JRE.
wangwja at 2007-7-12 10:39:08 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
ok, thinks
salim1981a at 2007-7-12 10:39:08 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...