Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / March 2004

Tip: Looking for answers? Try searching our database.

Need Help Using Browser Certificates with Java

Thread view: 
Bleedledeep - 15 Mar 2004 21:58 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.