Guess I need some hand holding :(
I am trying to programmatically access a web page that requires a
username/password and uses SSL with some sort of certificate. (No,
I'm not doing anything bad)
I know the certificate is somewhere within the keystore IE is
accessing.
I have been reading/searching this group and other usenet/web stuff
and cannot figure out how to use these keys in my java app. I've
written quite a few things trying to make this work, but can't seem to
get the cert imported into a key factory I can use.
What I need to know is:
1. Under what format should I export the certificate from IE?
2. How do I load that cert into a key factory I can use from Java?
3. I suspect there is no answer to this, but is there any way other
than trial and error to figure out which of the certificates in the IE
store the web page is using?
nobody - 16 Mar 2004 01:42 GMT
> What I need to know is:
>
[quoted text clipped - 3 lines]
> than trial and error to figure out which of the certificates in the IE
> store the web page is using?
1) An X.509 cert should work fine.
2) Generally speaking,
keytool -import -alias somealias -file mycert.cer
More documentation is at:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html
3) I'm not on a windows box presently but I believe double-clicking on
the little lock icon in the bottom right corner of the window will bring
up the security information for the page. This should list the site
certificate; it should also provide a button to export it to an X.509
cert file.