Total members 11894 |It is currently Thu Nov 21, 2024 4:34 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Maybe someone can help me with some java stuff.
I'm using a java application to connect to an HTTPS site. My OS is linux.
Initially i have no certificate of the server, e.q.( a machine with IP
192.168.1.2).
I want to connect to that IP using https and acquire its certificate,
and just like
web browser, I need to prompt a dialog to either accept or cancel the
certificate.

Do you have any idea how to do?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

You can try this, http://hc.apache.org/httpclient-3.x/sslguide.html

Using predefine protocol :
org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Using java in http connection
 How to open http connection using j2me     -  
 HTTP POST msg connection close problem     -  
 HTTP Server in Java     -  
 http proxy code     -  
 Send parameters using HTTP GET     -  
 Get value from HTTP POST VARS     -  
 Build distribution applications by remoting(TCP/HTTP)     -  
 Multipart HTTP forms submitter - With Progress Information     -  
 database connection     -  
 Connection object in jsp     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com