Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



Java client error "Unrecognized SSL message, plaintext connection"

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-03-2009
Member
 
Join Date: Jan 2009
Posts: 64
Java client error "Unrecognized SSL message, plaintext connection"

hello
i get the error of "Unrecognized SSL message, plaintext connection" while I was looking webservice to https server through a proxy server using a simple webservice client in java (Axis). The client code does have Https.proxy properties setting.

Note that I am able to use web browser client to send the https requests via the proxy server. In the browser setting, the https proxy server port is sepcified , and same setting to Https.proxyPort on the client code .

please can someone help me find solution ?


Thank you in advance !!!
Reply With Quote
  #2  
Old 17-03-2009
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Re: Java client error "Unrecognized SSL message, plaintext connection"

Are you sure that port that you use to connect out on 443? That exception is usually thrown when an attempt is made to connect SSLSocket to a regular HTTP port.
Reply With Quote
  #3  
Old 17-03-2009
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: Java client error "Unrecognized SSL message, plaintext connection"

Java fix the socket extension (JSSE) is a set of Java packages that enable secure Internet communications. It implements a version of Java protocols SSL (secure sockets layer) and TLS (Transport Layer Security) and includes functionality for data encryption, server authentication, message integrity, and optional client authentication. Using JSSE, developers can provide for the secure passage of data between a client and a server during any application protocol (such as HTTP, telnet, the NNTP and FTP) over TCP / IP .
Reply With Quote
  #4  
Old 17-03-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Java client error "Unrecognized SSL message, plaintext connection"

Implementation of pure Java U.S. export Fix support for v3 sockets layer (SSL) 1.0 Support of the transport layer security (TLS) . Basic Utilities for the key and certificate management, including securely encrypted storage of private keys and support from the Certificate Authority (CA) classes SSLSocket and SSLServerSocket, which can be instantiated to create set of channels , Encrypt the negotiation on, who runs the "de SSL handshaking "to initiate or verify secure communications , Authentication client and server, as part of the normal handshake SSL , Support HTTPS: the ability to access data such as HTML pages using HTTPS session management server to control the hiding of the sessions. Algorithms of RSA cryptography - implementation of JSSE includes the code allowed for the protection of data from the RSA. Cryptographic Suites, including:

eg
Quote:
try {
int port = 225;
String hostname = "hotdir.biz";
SocketFactory socketFactory = SSLSocketFactory.getDefault();
Socket socket = socketFactory.createSocket(hostname, port);

InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();
in.close();
out.close();
} catch(IOException e) {
}
Creating an SSL Server Socket(Java SSL tutorial)

try {
int port = 225;
ServerSocketFactory ssocketFactory = SSLServerSocketFactory.getDefault();
ServerSocket ssocket = ssocketFactory.createServerSocket(port);

Socket socket = ssocket.accept();
InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();

in.close();
out.close();
} catch(IOException e) {
}
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Java client error "Unrecognized SSL message, plaintext connection""
Thread Thread Starter Forum Replies Last Post
Getting error message "The TCP/IP connection was unexpectedly terminated by the server (NNTP)" Nearer Networking & Security 7 2 Weeks Ago 11:11 AM
Getting "The connection has timed out" error message while accessing website gANdHAaIt Technology & Internet 5 22-09-2011 10:00 PM
Getting "The connection was refused" error message on Mozilla Firefox Harshsss Technology & Internet 3 18-09-2011 08:19 PM
Unable to connect Windows Phone 7 to Zune getting error message "Connection Error " Prahlad! Portable Devices 4 04-09-2011 01:44 PM
Windows 7: "null sharing connection" error message in wireless network Anthana Operating Systems 4 17-01-2011 10:02 AM


All times are GMT +5.5. The time now is 07:36 AM.