TLS not working with Openssl Certs

1380 byte By edejongha at 2007-10-1 19:17:56
Hi I have been struggleing with a certificate problem for about two weeks now with no joy. Almost all the forums, tutorials and examples etc. I have tried are simply not working. Without fail I get the following exception or similar:[Root exception is javax.net.ssl.SSLHandshakeException: ...

Default hostnameverifier always returns false ...

820 byte By romiljainromila at 2007-10-1 19:18:05
Hi,I am trying to run wsdl2java by supplying an https URL. The JVM args that I am using are:javax.net.ssl.trustStore=E:/Romil/projects/AirDeccanPlugin/localhost.ksjava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocolOn running wsdl2java, I end up getting the following ...

Default SSL context init failed: null

4285 byte By nie_fenga at 2007-10-1 19:21:10
Hi all,I am trying to open a SSL connection from a tomcat server (called it TC1) that locate within a DMZ to the other tomcat server (called it TC2) which is located in external network.I got the following in the TC1 system.out,WARNING: Servlet.service() for servlet HelloWorld threw ...

Enable JSSE Debugging in servlet?

266 byte By nie_fenga at 2007-10-1 19:22:01
Hi everyone,I read from an article that we can enable the JSSE debugging using the following command java -Djavax.net.debug=all MySSLApp Is it possible to enable such debugging utility inside the code of a servlet?ThanksFeng

KeyStore in a byte array

176 byte By Alortesfbfhfgytytua at 2007-10-1 19:30:59
How can I set System.setProperty("javax.net.ssl.trustStore", "..."); if I have the KeyStore in a byte array (byte[]) and I can't write it to a file?Help, please!

SSLHandshakeException in Tomcat

5574 byte By flippolisa at 2007-10-1 19:33:06
I am using Tomcat for a web application where I managed to use client authentication. My problem is when I don't have a valid certificate installed in my browser that is, the certificate is expired or I don't have a certificate at all, I see logged an SSLHandshakeException and the broswer ...

httpClient and linux issue

276 byte By amit_shah25a at 2007-10-1 19:52:42
i am trying to use httpClient version 2. alpha with suse linux ver 3.0.i have very simple code, but it seems does not work on linux. Any idea, same code works on windows. I am making simple http post request to get data from my data provider.Thanks

help with java.lang.ClassCastException in JSSE

955 byte By hard_timea at 2007-10-1 19:54:58
I need an urgent help.i am writing code in JSSE for getting Server certificater(through SSL)i wrotepublic class url{public static void main(String[] args){try{System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");Security.addProvider(new Provider());URL ...

Chat system through applet, accessing applet from server and local host...

4384 byte By nirajsingh4142a at 2007-10-1 19:56:34
Thanks in advance for concerns my problems......I m woking on chat system by using java swing applet. It is working well on the local machine (it means on single machine) coz my application is accepting the IP of the same system and openning the socket of the same system by host and ofcourse ...

FTPS and JSSE - plaintext exception

1066 byte By TheDragona at 2007-10-1 19:57:34
Hello, I have the following problem:I already developed a working FTP application that supports TLS/SSL in implicit and explicit mode. But it only works with some of the available ftp servers. All the others I tried (e.g. the free linux servers like proftpd, vsftpd and pure-ftpd) didn't work ...

BufferOverflow possible on an unwrap

2037 byte By deanhiller2000a at 2007-10-1 19:57:53
If my outgoiing buffer is the size the SSLSession tells me to make it and the incoming buffer is the size it tells me to make it, is it possible to get a BufferOverflow? Shouldn't the sizes be enough that this will never happen as long as the outgoing buffer is cleared. According to my logs, ...

Weird HttpsURLConnection problem

4255 byte By benkietraa at 2007-10-1 20:07:06
Hi everyone,I am running a struts application on jboss 3.2.1. Part of my application deals with posting xml over https. Two problems popped up today, and because they appeared at the same time, I have a hunch they're related.1. Our production server (which we recently purchased a new SSL ...

Java/C++ secure communication

749 byte By crsschmia at 2007-10-1 20:29:52
Hi,I'm working on a small project where client (C++) and server (Java) must communicate in a secure way. I'm not a specialist on JSSE but as far as I could find on tutorials and books, I have to create keys and certificates using the keytool shipped with JSDK. My doubt is how the C++ side ...

Hello server messages TLS1

620 byte By obremonda at 2007-10-1 20:41:16
JSSE SSL (JDK1.5) server seems not compliant with TLS1 norm regarding the syntax of Hello server messages.JSSE SSL server sends the messages Hello server + Certificate + hello server done encapsulated in a common record layer header Type=handshake.0x16, 0x03, 0x01, len, <hello hsk msg>, ...

Comodo InstantSSL

832 byte By alipatova at 2007-10-1 20:43:02
Hi, I'm having a problem with my HTTPS website:- The site is secured by Comodo InstantSSL cert, which, itself is signed by GTE- a page contains an AppletWhen Java plugin (1.5.0_04) tries to load the applet over HTTPS it says that the certificate cannot be verified and asks you to either trust ...

Too many sessions created when running HTTPS port on AIX/Jetty

893 byte By tcatesa at 2007-10-1 20:51:55
I'm running an HTTPS port using Jetty 5.1.3 on AIX 5.3. Up until now when running my webapp on windows or solaris machines, my session tracking and use of session objects was working fine. And this configuration works fine when using http ports.What seems to happen in the secured port ...

Expired certificate unexpectedly works under JRE 1.4.2_06+

328 byte By martin_rowea at 2007-10-1 20:53:05
Hi,I have a client trust store for server authentication containing an expired certificate. Under JRE 1.4.2_06 (and 1.5) the expiry is ignored (unexpected), however under 1.3 and 1.2 using the same code it is considered invalid (as expected).Why has the behaviour ...

implement SSL in JSP and servlets

695 byte By maniSingha at 2007-10-1 20:56:36
hi there,i needed some help in implementing ssl in JSPs and servlets. My idea was to have a login page and also use it where sensitive data is being sent. I have used the basic socket programming (socket.class and serverSocket.class) in GUI applications using threads to listen and send ...

SSLHandshake exception

474 byte By lumetaa at 2007-10-1 21:06:41
Hello all, I am writing a small client application that needs to connect to secure server that is PKI enabled. My code works fine when the server is not PKI enabled. Then I can make an https request over SSL and get the response. But when I try the same code when PKI is enabled, I am getting ...

X509 HTTPS client side certificate not being recognized ?

3828 byte By jpluisa at 2007-10-1 21:13:13
Dear fellow developers,A Java client program doing HTTPs POSTs is not apparently usingan SSL certificate supplied by the server company.What could be the problem ?The +/- detailed log of what I have done is the following:1 - The server company has supplied a .pfx binary file with the ...

Unrecognized SSL message, plaintext connection?

3099 byte By ndronena at 2007-10-1 21:18:34
Hi:I'm getting the an SSLException with the message "Unrecognized SSL message, plaintext connection?" in the first call to unwrap() in the server-side of a handshake. I've turned debugging on. The client and server are running as a junit test, so their debug output appears in the same window ...

How to config JSSE?

374 byte By @smile@a at 2007-10-1 21:23:07
Hi, i am using uddi4j which requires the JSSE to be configured, in the documentation of it, it just mentioned i need to modify the java.security file under the %JAVA_HOME%/jre/lib/security directory. But i just don't know how.would you please tell me if one java application want to use JSSE ...

multiple connections on a single socket simultaneously

190 byte By mani.venkata at 2007-10-1 21:24:56
Hey everybody,Can a single socket on a client establish connections with different ports on a server at the same time? I am awaiting for your replies.Thanks,Mani.

SSH connection from java

152 byte By mani.venkata at 2007-10-1 21:24:59
Hey java buddies,Can I login to the remote system using secured shell(SSH) from my java program? Awaiting your replies,Mani.

identifying clients with certificate serial number

268 byte By alexxelaa at 2007-10-1 21:29:59
Hi,I use client certificates to identify connections to my server, the client certs are signed by my own CA.Is it secure then, to identify the clients by their serial number certificate and let ssl do the rest of the job ?Regardsalex

Problem with socket

877 byte By zsja at 2007-10-1 21:35:57
HiWhen I run my applet and want connect to server, applet failed and this exception occure :java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.35:11000 connect,resolve)at java.security.AccessControlContext.checkPermission(Unknown Source)at ...

How to get X509Certificate from HTTP header after SSL off load? -EMERGENCY-

1882 byte By extramuma at 2007-10-1 21:44:50
There is an F5 BIG-IP who made HTTPS connections to HTTP, and inserted PEM format client's certificate to HTTP header, and delivered client's certificate to WebLogic server.I can see the certificate in HTTP header on WebLogic, it is like this:--BEGIN ...

javax.net.ssl.SSLHandshakeException

2651 byte By atldudea at 2007-10-1 21:49:39
I am trying to connect to an iplanet using a URLConnection object and I build this object using an https URL. I set all the properties before I try to obtain the output stream on this connection. When I do connection.getOutputStream() it throws the exception below.I am using an applet that ...

java.net.ConnectException: Connection refused: connect

2750 byte By gurpreet33a at 2007-10-1 21:49:56
I have to access my server component deployed on tomcat5.0.3 from standalone swing application. I am getting the following error. But when I try to access the server component in the browser its working fine. I am getting the connection refused exception when try to connect to thr url. I am not ...

How to import .pfx certificate to use on client side java HTTPS POST code

2124 byte By jpluisa at 2007-10-1 21:54:23
(This should be some kind of FAQ, but I've been reading JSSERefGuide.htmland searching the web and found no similar problems,so may be its just me not getting how to do it).An internet company has given me a .pfx file with a certificate to use for client side SSL.I wrote a simple Java client, ...

SSLSocketFactory on Windows 98

1072 byte By SoniaPa at 2007-10-1 21:54:55
We are using secure connection for communication between the Application Client and Server. On the Client (Swing based) we are obtaining the default SSLSocketFactory as follows : ...

Setting UP SSL on Tomcat

259 byte By ILLa at 2007-10-1 22:13:45
Hi all,I want to set up SSL Environment on local server (Tomcat). Any one who can guide me in steps that what I have to do ...... so that I can have a local site deployed and I am accessing it through https://....Thanks in Advance.

SSL over plain TCP/IP

679 byte By B.Mangalaganesha at 2007-10-1 22:16:31
I am trying to write a client server app and i want my calls to be encrypted via SSL.I am using IBM JDK as my runtime is WebSphere.//For JSSEPrvider2 use:com.ibm.net.ssl.www2.protocol//For JSSE Provider use: com.ibm.net.ssl.internal.www.protocolSystem.setProperty("java.protocol.handler.pkgs", ...

EJB over SSL

175 byte By saminta at 2007-10-1 22:17:08
I want to create EJB client and transmitte data on EJB server over SSL.I use Sun Application Server PE 8 and NetBeans. How configure and coding client and sever.

Help with SSL connection with host IP Address

3515 byte By DWAlbrighta at 2007-10-1 22:27:20
I抦 trying to make an SSL connection to a server which is only known by an ip address. Every time I try to make a connection to the server I get errors. javax.net.ssl.SSLProtocolException: java.io.IOException: java.io.IOException: Host portion is not a valid DNS name, IPv4 address, or IPv6 ...

problems connecting java and MYSQL

535 byte By jagan18a at 2007-10-1 22:45:09
Hi everyone,I am working on Suse 9.3 I have problems in connecting to MYSQL from Java.I am able to complie my java file but during execution i get the following errors.I have set my classpath tomysql-connector-java.jar and /usr/lib/jvm-exports/java-1.4.2-sun-1.4.2.05/jdbc-stdext-1.4.2.jar. ...

configuring "trust store" for SSL clients

759 byte By solmyr72a at 2007-10-1 22:47:56
Hi,Would any one please be able to tell whether and SSL client can *programatically* configure its "trust store" , and *not* by using System.setProperty ?In detail:I'm writing a client, that connects to a server using SSL.The server's certificate is *not* signed by a "well-known" CA ...

Keystore: cert expiry

204 byte By leoblooma at 2007-10-1 22:48:40
Is there anyay to extend the expiry date of a self signed cert without making a new one. It took me a long time to get these self signed certs working and i dont want to make new ones.thanks

Java C++ Communication through SSL

623 byte By fazahida at 2007-10-1 22:49:37
Hi, i am working on a project where the server is implemented by Java technology and client is implemented using C++ technology. For secured communication i need to implement SSL in both server and client. when the client first contact with server they will commit a SSL handshake and will fix a ...

Certificate does not contain the correct site name

3971 byte By mcgyver83a at 2007-10-1 22:53:00
Hello,I have to make a midlet that connect to a tomcat 5.5.9 server with ssl.I import the certificate whit tomcat alias in the wireless toolkit but when i run the midlet this error appear: Certificate does not contain the correct site nameimport java.io.*;import ...

client SSL socket NoClassDefFoundError

3736 byte By Boogya at 2007-10-1 22:56:15
Hi there everybody.I'm trying to make an SSL connection to a server and i'm getting a NoClassDefFoundError. I've gotten it down to this code:System.setProperty("javax.net.ssl.trustStore","c:/truststore");System.setProperty("javax.net.ssl.trustStorePassword","123456");SSLSocket sslSocket = ...

Disable trusted certificate validation

207 byte By loceanux0a at 2007-10-1 23:01:01
How can we make LDAP SSL connection not to check the server's certificate?I know we can import the cert as trusted. But sometimes we just want to connect.Is that possible?Thanks.

SSL Server socket: controlling the alias for the server certificate ?

602 byte By solmyr72a at 2007-10-1 23:04:23
Hi,Could anyone please clear up the following ?When you create an SSL server socket, it needs a certificate (to prove its identity), and for this it relies on a keystore:System.setProperty("javax.net.ssl.keyStore", "c:/mystore");My question is, what if the keystore contains *several* ...

sun.security.validator.ValidatorException: No trusted certificate found

4279 byte By Akhnukha at 2007-10-1 23:04:41
public class JLinkPointSample { public JLinkPointSample() {} //-- public void Process() {try {JLinkPointTransaction txn = new JLinkPointTransaction();String sClientCertPath = "C:/OpenSSL/bin/1909101928.p12";txn.setClientCertificatePath(sClientCertPath);//txn.setPassword("12345678"); ...

javax.net.ssl.SSLKeyException: Public key not of type RSA

2296 byte By Dieoga at 2007-10-1 23:11:01
I obtain the next error:javax.net.ssl.SSLKeyException: Public key not of type RSAat com.sun.net.ssl.internal.ssl.SunJSSE_am.<init>(DashoA6275)at com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA6275)at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA6275)at ...

Javadoc 4 JSSE

347 byte By transtrophea at 2007-10-1 23:19:44
I'm working with NetBeans 1.4. Just re-downloaded because I couldn't find the JSSE javadocs in my current set-up. Still don't see the correct Javadocs for 1.5. All I have is the Enterprise Javadocs for 1.4 in the latest NetBeans bundled download.Where can I get a download of the entire JSSE ...

No trusted certificate found

2130 byte By franknzhou@hotmail.coma at 2007-10-1 23:28:53
I created a test java program to access to https server and got this message.javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate foundCan somebody help?This is my java program code:import java.net.*;import java.io.*;import ...

JSSE setup

3007 byte By sledge_hammera at 2007-10-1 23:39:01
Hi,I'm trying to set up JSSE with J2SE 1.3. I need my client to connect to a third party server over SSL. I was getting the handshake exception when I tried to connect. After googling quite a bit I got a piece of code that checks to see if JSSE is installed correcrly...so I am now testing this ...

Help with KeyAgreement

180 byte By Tastea at 2007-10-1 23:42:16
http://forum.java.sun.com/thread.jspa?threadID=657640&tstart=0Can anyone help in the above problem.I posted the question under cryptography Thanx inadvance

java (JSSE), keytool and certificates

2202 byte By MFernaua at 2007-10-2 0:01:35
Hello,I have a few basic problems with Certificates and JSSE.I need to code a client-server program for company internal use. For this program I need a secure way of communication over TCP. Thus I thought SSL is the thing I need. Now I have a few basic problems with the 'SSL-Idea'.What I know ...