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: ...
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 ...
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 ...
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
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!
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 ...
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
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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>, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
Hey java buddies,Can I login to the remote system using secured shell(SSH) from my java program? Awaiting your replies,Mani.
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
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 ...
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 ...
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 ...
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 ...
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, ...
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 : ...
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.
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", ...
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.
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 ...
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. ...
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 ...
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
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 ...
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 ...
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 = ...
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.
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* ...
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"); ...
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 ...
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 ...
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 ...
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 ...
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
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 ...