Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 10:13 PM
Member
 
Join Date: Jul 2007
Posts: 4
karl is on a distinguished road
Help needed with certificate used to access webpage
Sup guys,
Im working on this script wherin I have to grab data from websites trades and stuff. Well theres this one website which requires a certificate that needs to be used to access the webpage. Ive tried a lot of stuff but doesnt work.
The certificate used is an X509 certificate. So ive exported the certificate from wherever and given it a new name. Now ive used this code:

InputStream inStream = new FileInputStream("");
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
inStream.close();
now do i need to addCertificate() or something like that.
Help needed urgently.
Thanks a lot folks.

Have a good one!!

Cheers!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
post info to a webpage kmp Networking 1 03-22-2008 03:20 AM
Secure Webpage for Logins chandpuri Advanced Java 1 03-08-2008 07:05 PM
Java certificate Nick15 Professional Certification 2 11-12-2007 07:02 AM
Help with access a database using Microsoft Access cachi Database 1 08-07-2007 08:51 AM
using Java to access a secure webpage, Exception occurred: Connection timed out toby Enterprise JavaBeans 1 08-07-2007 07:03 AM


All times are GMT +3. The time now is 09:28 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org