We have been working with JSSE1.0.2, as we have to implement SSL/TLS in a B2B environment. The requirement for our organization is to communicate with different remote machines where XML messaging has to be done over SSL/TLS. The problem with JSSE1.0.2 is, I am not finding solution to make use ...
I have imported the Java JSSE package andimplemented these in my server and client code.The serverSSL class listens for the Client connectionand if true, returns a message back to the Client.But when I run the ServerSSL i get the followingmessage:Exception : javax.net.ssl.SSLException: No ...
1590 byte By
welinder at 2007-9-26 16:33:56
Hi everybody!I'm trying to load HTTPS://instanteducation01.telia.com using URLConnection. I can load the page using IE6, but I have to manually accept the certificate, since the hostname of the certificate differs from the real hostname. This is no problem with Internet Explorer, but when I ...
Is it possible to configure Tomcat as an HTTPS server?If so,how should this be done.?Lets assume that I am writing a servlet that retreivesthe contents of a file from a secure Web Server?Rather than going to a secure Web Server, I would like to configure Tomcat as an HTTPS Server, and then ...
Hi all,I am using JSSE client ( uses applets) connects to JSSE server.I am getting error: untrusted server certI am able to connect JSSE server with the JSSE client with out applets with same self signed certificate.I have read some where that applets by default refer cacerts instead of ...
1186 byte By
rajshail at 2007-9-26 16:42:19
Hi,I'm working on JAVA Application which is behind the proxy/firewall and using the SSL to connect to the servers out side the proxy/firewall. I have downloaded a sample application from Sun site and with some modifications to it, I'm able to connect to the https://www.verisign.com site ...
Hello,I have configured the Tomcat 3.4 to act as an HTTPS Server now.I start up Tomcat and then when I try to run the application from the command line ,i get the Error:java HTTPSClient <Enter>Exception : java.net.UnknownHostException:https://localhost:8443/AHTTP/index.html.Please can any ...
I'm getting the following exception when attempting to connect to via HTTPS to a site using HTTPUnit. Does this ring a bell for anyone? java.lang.NullPointerExceptionat com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])at ...
Hello,(excuse me for my poor English, I'm a french guy)I try to create a little https proxy witch only add a proxy-authorization field to each headers it received.This works fine with http, but not with https. Is there anybody having a code example witch implements an https proxy.This is my ...
Hello,I have just written a Java Code which connects to a Secure Web Server and displays the contents of the file.I am connecting to the Secure Server thru a Proxy.The code is as follows:import java.util.*;import javax.net.*;import javax.net.ssl.*;public class URLConnect2 { public static void ...
Is there a mechanism to read in PKCS8 password encrypted files to get the privatekey by using the standard JSSE classes? the below works fine for those files not encrypted with a password: FileInputStream fis = new FileInputStream("/file");byte [] pkeydata = new byte [fis.available()];fis.read ...
360 byte By
karencck at 2007-9-26 17:00:15
i want to set up and ssl connection. and i m using Tomcat 4.0. so, i followed all the instruction in the tomcat-docs\ssl-howto.html until i got stuck in the server.xml configuration.i cannot even startup my server when i enable the connector. can someone pls guide me through until i sucessfully ...
1450 byte By
yoyoF at 2007-9-26 17:02:00
Hello,(excuse me for my poor English, I'm a french guy)I have a java 1.3 client which try to connect to a Apache server (1.3.22) with mod_ssl-2.8.5. My keystore is created with keytool (jdk1.3) and contains a private key signed by open-ssl-0.9.6b and the CA certificate auto-signed.The first ...
506 byte By
dradsws at 2007-9-26 17:13:47
Hi,We have an existing private key, stored in a ".p12" file.Currently, our existing program will access this file directly to retrieve the private key, however, we need to import this private key into a keystore so it can be retrieved by our new code.Does anyone know whether it is possible to ...
This is the error i have calling a page in https:javax.net.ssl.SSLException: untrusted server cert chainat com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])at ...
I need to install this certificate (Exported from Microsoft Internet Explorer) in the trustfile of my VIRTUAL MACHINE.--BEGIN ...
1118 byte By
welinder at 2007-9-26 17:22:17
Hi !I connect to SSL-enabled web servers with my http-client. Within the text I get from the server are some trash characters. My client uses my own http requests sent over an SSLSocket. If I use HttpsURLConnection, everything works fine. I'm sending exactly the same request as ...
Hi,I am accessing a secured site through java application using JSSE. To tunnel through proxy i am using SSLTunnelSocketFactory class. Firstly, I wanted to know will handshake happen everytime i place a request say i m downloading images from the site so for each image request handshake will ...
573 byte By
astromas at 2007-9-26 17:34:40
I am using JSSE 1.02 with OpenSSL generated certificates and I'm facing the situation where if I install the server certificate (Apache HTTP server) my client can establish the HTTPS connection but if I remove the servr certificate and instead install in the keystore the CA certificate which I ...
206 byte By
sbahal at 2007-9-26 17:50:28
In case client autentication is turned on. How does the browser pass the client certificate to the Server. What settings/prompts etc happen or need to be done.Thanks a lot,Sanjay
1754 byte By
amelin at 2007-9-26 17:54:50
Hi all,I am trying to get SSL client authentication from a java client. I am trying to acces a webserver (iPlanet 4.0) which is SSL authentication, from a java client using JSSE.For the certificates, I am using my own CA generated with openssl.I able to connect to my secure URL with IE.I able ...
I tried the simple code include in jsse: public class URLReader {public static void main(String[] args) throws Exception {URL verisign = new URL(args[0]);BufferedReader in = new BufferedReader(new InputStreamReader(verisign.openStream()));String inputLine;while ((inputLine = in.readLine()) != ...
683 byte By
spektr44 at 2007-9-26 18:03:22
I created a Secure Data Transfer Application which allows multiple users to send each other files and chat via SSL sockets. Each application combines SSL client and SSL server in one program. The app is completely based on JDK 1.4 Beta. I posted all the source, screen shots and even a complete ...
833 byte By
ysnoh at 2007-9-26 18:10:07
I was imported new certificat in the store "cacerts".I run socket sample "SSLSocketClientWithClientAuth" with my server(xxxx). It's run ok.I run again "URLReader" sample with my server(xxxx).But I got the following error HTTPS Hostname wrongat ...
317 byte By
cyberz1 at 2007-9-26 18:11:04
I have an application that I'm trying to incorporate an email function into. My SMTP server requires a user name and password to be specified. I wondered if I can use JSSE to carry this out. If anyone could provide me with any advice I would be most grateful. I am not currently using the ...
977 byte By
spieler at 2007-9-26 18:11:32
Hi,I'm building an application which is supposed to get some information from a secure website (https://)While looking at various alternatives I was presentedthe following statement: begin quote --Sun's JSSE is a reference implementationand as such is not recommended for use within commercial ...
268 byte By
ssjham at 2007-9-26 18:17:06
Hi, I just want to use high grade ciphers of 128-bit and disable 40, 56-bit suites. So, that browsers supporting only 128-bit RC4/RSA can only connect. Is it possible? If yes, then please let me know how.Thanks in advance,Sanvir Jham
329 byte By
macamoci at 2007-9-26 18:18:55
Hi to all!:I need some help about https. I have a server wich a need to connect to other web server via https, also I need to use certificates.Anybody can help me with this?....what I must to do first?....what i need to do?...some samples?Thanks a lot,Sorry about my poor english! ...
494 byte By
hoendem at 2007-9-26 18:19:21
Hi,Can anyone please help me with the following problem?I'm trying to get client authentication to work in Tomcat. I'm not sure what I should do for this however. One part is setting the clientAuth attribute in Tomcat's server.xml to true. What additional steps do I have to take? I assume ...
712 byte By
sengwai at 2007-9-26 18:23:44
Hi,I am trying out one of the example SSLSocketClient.java in the J2sdk 1.4.0 beta 3 documentation. (Path: docs/guide/security/jsse/samples/sockets/client/SSLSocketClient.java)I have installed the j2sdk 1.4.0 beta 3 successfully.I managed to compile the SSLSocketClient.java and get the .class ...
Attached below is the code that encypts the data before sending this.This code uses the JSSE package.Now if this data is encrypted,why do we need to send this over HTTPS? Why cant we open a normal Socket connection on port 8080 and then decrypt the message?As the data is encrypted before being ...
4118 byte By
balusug at 2007-9-26 18:25:47
How to solve this Exception. When I sent more than 8000 bytes of data in the request weblogic 5.1 in solaris server gives me this error. But the same server and same configuration in Window NT with same SSLClient program does not give any expection even if i send 60000 bytes in the request. ...
841 byte By
macamoci at 2007-9-26 18:27:34
Hi, again!I had installed jsee but with some problems. I descompressed the files, I put the jar files in the java-home lib/ext directory, but I dont know how specify https protocol. I try to set the system property using the command line , something like:java ...
1034 byte By
fsay at 2007-9-26 18:28:55
I am writing a client application to access a secure site (using https protocol). I downloaded JSSE 1.0.2 and followed the documentation on how to access a https site. However I am still getting a MalformedURLException: protocol unknown: https. Here is my code import java.io.*;import ...
I have written 2 servlets1)One for sending username and password over HTTPS2)One for receiving the username and password and decrypting thisWhen I am executing the 1st servlet,i get the exception :Error is client : javax.net.ssl.exception.:untrusted server cert chainI hv already created a ...
130 byte By
sicdac at 2007-9-26 18:34:59
Will anyone explain when to use KeyManger, KeyManagerFactory and TrustManager, TrustManagerFactory? I'm confused...
524 byte By
evanchoy at 2007-9-26 18:36:44
Hi all, would appreciate your help coz i doing a project on Socket Programming and i dun know how to go about it.I need to create socket at the server side and also another socket at the client side so that the two computers will be able to communicate.The problem is that i dun know how to ...
406 byte By
doruk at 2007-9-26 18:37:30
Hello everyone,I have implemented JSSE 1.02 succesfully. But due to some bugs i wanted to use new Security package which is coming with JDK 1.4. I downloaded JDK 1.4 and and imported jsse.jar to my development environment(JDK 1.2.1). I tried but could not make it work. Is anyone have an idea ...
3847 byte By
rgause at 2007-9-26 18:40:30
We are having problems making a connection to our firewall. The firewall will accept SSL v3.0 connection, but not SSL v3.1 (TLS 1.0) connections. Is their a way to force JSSE to downgrade its initial connection fromTLS to SSL v3.0?I'm attaching some sample code with the output:import ...
JSSE does not appear to follow the SPI paradigm, and performs operations using keys directly instead of using the appropriate factory method to obtain the correct algorithm and then using the algorithm.This seems to mean that one cannot plug and play JCE's and use the JSSE, if one's RSA ...
1676 byte By
doruk at 2007-9-26 18:45:55
Hello guys this is a follow to my previous question i appreciate if some one helps.I am using visualage with JDK 1.2.1,The code below works fine with JSSE1.02 but when i imported new jar file for JSSE 1.4 and try to use it i am getting a NosuchMethod exception when i try to get default Socket ...
792 byte By
rofarr at 2007-9-26 18:48:27
Hi All, I am trying to access a webpage over HTTPS using JSSE v1.0.2. I am getting the following stack trace:java.io.IOException: Incorrect AVA formatat com.sun.net.ssl.internal.ssl.X500Name.a(Compiled Code)at com.sun.net.ssl.internal.ssl.X500Name.<init>([DashoPro-V1.2-120198])at ...
I have converted a sockets client server application to ssl.I am wondering about the performance at "start-up" time.Starting up the server takes 20-30 seconds before it gets to the accept. During this time it does the following.Security.addProvider(new ...
I'm a little fuzzy on how the certificate gets transported to and from the client and server.Can someone explain this? I would like to grab the certificate sent from the server and install it automatically in my keystore so I don't get an "untrusted server ... exception".Also I noticed some ...
328 byte By
chennad at 2007-9-26 19:02:03
How to track of a source file's development and to prevent it from being altered by more than one person at a time.Is there any free tool to control source files.At any point of time only one user has to access a file.I want solve this problem immediately Please help me. Thanks. ...
606 byte By
joaquin at 2007-9-26 19:07:09
Hi all:I am developing a JNI interface to make an interface to MS CryptoAPI (on Windows). My first tests were sign successfully a text string. My surprise was when I do the same with JAVA to validating results (java.security API) and the byte order is reversed (all bytes reversed, not a ...
309 byte By
qmqasim at 2007-9-26 19:08:42
HiI have read many java security examples that use command line options (e.g. keytool) to generate keys or certificate. I would like to creat keys and certificates through a graphical user interface. Is this possible , are there any examples on the web.thanks ...
1135 byte By
Sscat at 2007-9-26 19:17:18
just a small sockets doubt that you mite be able to help. Bit and pieces of source code is as follows: try { ServerSocket s = new ServerSocket(8189); Socket incoming; //incoming = s.accept(); Boolean done = false;String line; while(!done) { incoming = s.accept(); BufferedReader in = new ...
700 byte By
rlake911 at 2007-9-26 19:28:39
Hi, I'm using JSSE 1.0.2 with VisualAge 4.0 to develop a server/client applications. I've been trying to use SSL for communication however for some reason, the client's socket closes.The strange thing is that the handshake goes smoothly, and some messages are passed without problem, but ...
1791 byte By
welinder at 2007-9-26 19:30:37
I'm trying to connect to a site (https://secure.web.telia.com) using URLConnection in J2SDK1.4rc1. No problem loading the page in IE6, but with JSSE, I get:javax.net.ssl.SSLException: error while writing to socketEnd of handshake:init contexttrigger seeding of SecureRandomdone seeding ...