Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 10:13 PM
Member
 
Join Date: Jul 2007
Posts: 4
Rep Power: 0
karl is on a distinguished road
Default 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
Reply

Bookmarks

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

BB 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
Secure Webpage for Logins chandpuri Advanced Java 3 09-22-2009 06:42 PM
post info to a webpage kmp Networking 1 03-22-2008 03:20 AM
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 +2. The time now is 11:17 AM.



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