basic SSL/Keytool/Certificate questions?
Hi everyone, im doing a project for uni and i need to create a simple SSL connection over a client and server. ive never looked into this before so it all seems quite confusing to me, just hav a few questions:
1) wot is keytools and where can i find it?
i know that keytools is required to make the certificates
2) wot do i do with the certificate once its been created?
3) will this work for my program?
the program is not going to go online, it is only going to be used on the same system using the loopback address in the client code.
thank you
Sam
[602 byte] By [
SammyDa] at [2007-10-3 4:20:00]

> 1) wot is keytools and where can i find it?
> i know that keytools is required to make the
> certificates
'keytools' is actually 'keytool' and it is provided with the JDK.
> 2) wot do i do with the certificate once its been
> created?
It's already in the keystore you specified to 'keytools' , or the default keystore.
The server now has to tell JSSE that this keystore is the keystore to use, and its password, as described in the Javadoc Guide to Features/Security/JSSE Reference Guide.
You also have to export the certificate using keytool and import it into a new keystore which the client will use as its truststore, again as described in the reference above. Don't get into all the coding involved for this, just use the system properties.
> 3) will this work for my program?
> the program is not going to go online, it is only
> going to be used on the same system using the
> loopback address in the client code.
Should do.
ejpa at 2007-7-14 22:21:55 >
