Java Keytool

b4u

Golden Member
Nov 8, 2002
1,380
2
81
Hi,

I'm currently learning about SSL, certificates, personal certificate, ...

So I'm came across keytool, that comes with Java package.

I have a few questions, but will start with some easy ones first:

1# Documentation (here says something about alias ... does keytool stores info anywhere else but the .keystore it generates? Some java at home directory, some registry setting (windows) or property file?

2# Can I generate a certificate for a website? (not from a trust source, I know, but for test purposes only)

3# Can I generate a certificate for personal identification, so a user can install it on it's browser and my website can automatically login once it receives it's info?


Thanks
 

b4u

Golden Member
Nov 8, 2002
1,380
2
81
Need some more info ...

I have a keystore file, named my.keystore. I exported the public key using keytool:

keytool -export -keystore my.keystore -alias myAlias -file myPublic.x509.cer

And there! The cer file with the public key.

Now I tried to import that cer file into internet explorer: Tools -> Internet Options -> Tab Content -> Certificates -> Tab Personal -> Import ...

After importing, it tells me it was imported with success, but asked for no password, and the certificate doesn't appear on the Personal tab ...

Anyone knows why? Or why it is not supposed to appear?


<edit>I'm using Windows XP Pro SP2 :) with JDK 1.4.2</edit>

Thanks