I am writing code that connects to a C++ server through the use of SSLSocket and Socket classes.The C++ server requires SSL for initial authentication, beyond that it switches to using regular clear text messages between the client and the server.Scenerial (1)SSLSocketFactory sslSF = {was ...
I keep getting a FileNotFoundException when I do the following:Open a connection to a URLGet the OutputStreamWrite something to the OutputStreamFlush and close the OutputStreamGet the InputStreamRead the dataClose the InputStreamGet the OutputStream againWrite more data to the OutputStreamFlush ...
463 byte By
pdwolfea at 2007-9-27 10:28:01
Is there any way I can use the browser's native methods for SSL encryption using sockets rather than URL objects? I know that the JSSE provides SSLSocket classes but my boss would rather that users did not have to download all the class files used in the JSSE. But he also doesn't want me to ...
Hi I am bit confused here.We already have a server and a client communicating through SSL using sockets. Client sends a large configuration data in raw bytes to the server. My client is an application not a browser.Now we are moving to make the server as Https server. Now client has to send ...
507 byte By
raj2476a at 2007-9-27 10:42:35
Hi all,I am using Redhat Linux 7.1 with Jdk1.3.1_02 & installed jsse1.0.2. I want to generate a temporary certificate using keytool. I am using the following commandkeytool -genkey -keyalg RSAI get the following error keytool error: java.security.NoSuchAlgorithmException: RSA ...
I am trying access an LDAP server via SSL. I wrote some code based on the LDAP/SSL tutorial and I was able to get it to run under JDK 1.4 on both windows and solaris. I then downloaded the JNDI 1.2.1 and JSSE 1.0.3 and plugged them in for use under JDK 1.2.2 and the same code fails tring to ...
537 byte By
irun5ka at 2007-9-27 10:50:27
Our product contains an HTTPS enabled web service. To deploy this to a customer, currently they have to go through several tasks usually reserved for the Java engineer- running keytool to do things like gen CSRs, install the cert returned from the CA, etc.Is there some way to automate all of ...
1438 byte By
czeia at 2007-9-27 10:56:31
I'm trying to finish an HTTP proxy written in Java, and have run into a problem passing the web server's certificates back to the browser.I have a working https proxy, sort of, but had to resort to creating new, self-signed certificate on the fly, which has the side effect of giving the ...
I want to use JSSE using JBuilder5 , I followed the instructions for installing it , I made the required changes and copied the jar files into the specified folders , only I did not find the folder c:\jdk1.3\jre\lib\ext since I'm using JBuilder but I found it under c:\JBuilder5\lib\ext and I ...
I am using JSSE 1.0.3 and I am getting the following exception in my code when I try to access a site. Any help is appreciated in troubleshooting this problem.https://www.dljdirect-sfg.co.jp: SSL implementation not availablejava.net.SocketException: SSL implementation not availableat ...
Hello,Desperation here. I'm trying to establish an ssl client connection. I have been given a .p12 certificate store by the organization who has the server I'm trying to connect to. The other organization has "self-signed" the certificate. The ssl client must use authentication. I am using ...
1164 byte By
dedexa at 2007-9-27 11:22:02
I have a java program which allows me to execute command on remote host.I'm using the library NetComponents.jar.It works very well with NT.But when I try to execute it under unix, I have this exception :java.net.BindException: All ports in use or insufficient permssion.at ...
Hello,I am using JDK 1.4. with JSSE 1.2.I have created a test server certificate and would like to transfer data over HTTPS using Tomcat 3.2.4However,when compiling the 'HttpsHandler' class with jdk1.4 I am getting an error which I was not getting with jdk 1.2.2.The Error while compiling is ...
Hello,I am using jdk 1.4 and jsse 1.02 to connect to a valid serverwhich has a valid server certificate.However,when compiling my HttpsHandler Class I am getting the flwg error :HttpsHandler.java:107: reference to HttpsURLConnection is ambiguous, both class com.sun.net.ssl.HttpsURLConnection in ...
I have this problem:init contexttrigger seeding of SecureRandomdone seeding SecureRandom>>>>> CONNECT https://www.verisign.com:443 HTTP/1.0User-Agent: Java1.3.0>>>>> HTTP/1.0 200 OK>>>>> StartHandshake...%% No cached client session*** ClientHello, ...
Hi there! I'm developing a java client which will connect to a HTTPS server. I made MyX509TrustManager class just as you told in one of your replies. I also used the SSLContext stuff. In other words, here it is the code:/********** MyX509TrustManager class **************/import ...
Hi all,I am trying to connect to a https site through a proxy, but it keeps giving me the error posted below. The problem doesn't seems to be on the proxy authentication, since I can connect to a normal (http) site and retrieve some information from there. I've posted me code below, it should ...
587 byte By
pdwolfea at 2007-9-27 12:03:44
Guys,Here's the deal. I have an applet that functions by sending messages back and forth to a java server through a Socket using java's Socket class. My boss would like this socket to be an SSLSocket. My problem is getting the applet side of things to work properly. Since different VMs use ...
Hi JAVA/SSL experts!I want to establish a connection from a standalone client to a ssl server tunneling through a proxy.If I execute the java class from forte 3.0CE everything works fine, I will get this output:THE HEADERS--KEY: DateVALUE: Thu, 11 Jul 2002 08:03:05 GMTKEY: ServerVALUE: ...
Hi orion and java experts!I have a problem in using a java class that connects to an externalssl server.Invoked by a standalone program everything works fine and I get aresponse from the ssl server:THE HEADERS--KEY: DateVALUE: Thu, 11 Jul 2002 08:03:05 GMTKEY: ServerVALUE: Apache/1.3.24 (Unix) ...
152 byte By
amit_ia at 2007-9-27 12:33:47
hi does anybody know how to cache SSL sessions programatically?if yes how do we do itregardsAmitamit_i@rediffmail.com
265 byte By
alokraia at 2007-9-27 12:35:29
i am new LDAP, i have a certificate as one of the attributes of an entry in iPlanet LDAP Server 5.1 sp2. I want to access the public key of the certificate how can i access that certificate and store in a reference variable of JAVA.Regards,Alok
5273 byte By
trintaa at 2007-9-27 12:44:43
I'm trying to use the SSL-components in the JDK1.4, but with little success. When the client tries to make the handshake to the server, an exception is thrown: java.net.SocketException: Software caused connection abort: socket write error. Here's the complete debug trace:trigger seeding of ...
Hi all,I've made a program that prints all the contents of a given html page (from https://www.verisign.com in this case...). Since I am behind a firewall, I've done all the authentications against the proxy and it all worked fine when I'm using jdk1.4. However, when I turn to use jdk1.3.1, ...
I am using Sun's reference implementation for JSSE1.0.3 along with JDK1.2.2. I noticed in my program, the first time that I do a SSLSocket.startHandshake(), JSSE does the seeding of the SecureRandom object and hence the handshake takes longer. The second time onwards, even if I have ...
Hi,I want to do a client auth with Apache from an applet. My applet works fine if I use a local certificate in p12 format.Now I want to do auth with a certificate on a smartcard. This cert is stored in pkcs11 format, means I get only the certificate without the private key. Now my applet throws ...
hi all....my web server currently accepts requests of the form http://abc.com/.....but now i want it shud accept requests only of the formhttps://abc.com/...i.e. when somebody types http://abc.com...it shud display error msg. which i guess is HTTPS implementation.i'm confused with the info ...
440 byte By
jijitha at 2007-9-27 12:59:26
I have imported a certificate from CA into a local keystore as follows -keytool -import -keystore mystore -file c:\cert.cerStill when I try to access the HTTPS site using JSSE, I am getting the following errorjavax.net.ssl.SSLException: untrusted server cert chainI think the program may not be ...
I have a pair of java applications that are designed to transfer files between a client and server via HTTPS/SSL. This works just fine on Windows, but if I move the applications to Linux, I get an exception error stating that the keystore has been tampered with or the password is incorrect. ...
226 byte By
keithk at 2007-9-27 13:43:28
Hi:I am trying to create a keystore without a store password using keytool with no avail. I know it is possible because the cacerts that come with the JVM does not have a password.Thankskeith
359 byte By
Tschlunz at 2007-9-27 13:48:39
Hi,can anyone tell me if it makes a difference for a connection if I use a HTTPSURLConnection or an URLConnection to a https-URL? Ok, there are some methods in HTTPSURLConnection which give me the certificates and a SSLSocketFactory but are there any differences how the connection is ...
620 byte By
mdehaan at 2007-9-27 13:52:08
How would I go about using anonymous SSL in Java?I have a client/server program with both ends written in Java. Currently my SSL test seems functional, but I want to eliminate the need for the keystore/truststore/keytool voodoo in order to get the system working.I find it annoying and it will ...
532 byte By
armoses at 2007-9-27 14:03:58
Hi All,I am trying to download a file from a site. I get the following error:java.io.IOException: HTTPS hostname wrong: should be <alsomy.site.com>, but cert says <my.site.com>It works if I go thr' the browser. But if I try to do it using jsse classes I get that error. The ...
257 byte By
eelan1 at 2007-9-27 14:08:02
hi,can any one help me which jar file i have to use for the following package. javax.xml.parsers.*;where do i get the jar file.i am going place jar file in UNIX Systemthaxwith regardselan
661 byte By
nospam77 at 2007-9-27 14:12:47
Hi!I've encountered a problem while upgrading from JSSE 1.0.2 to JSSE 1.0.3.I'm connecting towards a LDAP server over SSL and have implemented my own X509TrustManager.I've implemented the logic inte the isServerTrusted method leaving the isClientTrusted just returning false. After all, I'm ...
2429 byte By
eelan1 at 2007-9-27 14:29:25
hi, i got the following error when i connect URL thr https.it is working fine in the NT.but when move the code UNIX try to access it is giving followingerroris there any thing i have to set for rectify it ..MalformedURLException java.net.MalformedURLException: unknown protocol: ...
528 byte By
mgraham_ at 2007-9-27 14:31:46
I am trying to get an sslv3 client working with a server which requires client authentication. The client issues the clienthello - the server accepts the request, generates the serverhello, the certificate and the certificate chain - then just hangs. No error, no exception, nothing. I am ...
I am Using Apache Web Server and Apache Jserv1.1.2 My whole Intranet site is ready, i was using javamail API for smtp and it was working fine ...now we switch our mailserver to TLS i.e. secure mail server now my java mail is asking for 530 must issue a STARTTLS command First I downloaded ...
579 byte By
bhamciuc at 2007-9-27 14:44:36
Finally, I've found the right forum... Hi, I've been trying to move an application to jdk1.4, but I get this exception:java.lang.UnsupportedOperationException: The method shutdownOutput() is not supported in SSLSocket at com.sun.net.ssl.internal.ssl.SSLSocketImpl.shutdownOutput(DashoA6275) ...
705 byte By
piacarel at 2007-9-27 14:45:46
We have an ssl implementation that works under 1.3. When I bring the application up under 1.4, I get the following when TrustManagerFactory.getInstance("xxx");is called:java.security.NoSuchAlgorithmException: Class yyy.xxxTrustManagerFactorySpi configured for a TrustManagerFactory: not a ...
I'm implementing my own trust manager in order to use anonymous connection. I'm declaring the Sun internal SSL provider. When I try to open a URLConnection cast into a HttpsURLConnection object with the following code, I get a ClassCastException:MySslSocketFactory xSSF = (MySslSocketFactory) ...
776 byte By
ccshiu at 2007-9-27 15:03:35
I have a program used to connect a web service via https, and it works on every PC when it runs as a normal application. But if I deploy it to Java Web Start, it can only run on my PC. I will get the following error messages if it runs on the other PCs:[SOAPException: faultCode=SOAP-ENV:Client; ...
Hi .. I am having some problems with SSL access to a specific site. I have a servlet that contacts several sites over HTTP, using SSL, and it's working properly for all but one site. The error I got is:javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate The only problem is ...
755 byte By
Sudha847 at 2007-9-27 15:19:39
Hi ,I am doing application ,Which sends data(client) to Secured Server.I am using Sockets for Client Server Communication.I am Using URLConnection to send the data.I am using J2sdk1.4(It is having bulitin support for JSSE).I am using trusted certificate from Verisign .I imported my certifcate ...
221 byte By
t1052499 at 2007-9-27 15:22:31
Does anybody know if a way in jdk 1.3 to open a URL connection using SSL. I know of the javax.net.ssl.HttpsURLConnection class in 1.4 but it wasn't in the JSSE jar files I downloaded? Has anyone any ideas?
3911 byte By
mrbeeper at 2007-9-27 15:23:40
Using an SSL connection in my java program,I can connect to an SSL site using basic authentication and get a given document.For example going tohttps://www.mydomain.comWill simply and easily return theindex.html page at that address.Works great.My real goal is to connect to a cgiservice on that ...
hi,I want to know "how to sign a certificate". If I act as a CA, I must be able to sign a certificate. I need which class or method to be used to sign others certificate(not self sign)(as verisign does). Do we have such option or not?I need it urgently.Thanks in advance.regards,Deepa Raghuraman ...
4051 byte By
bgrigg at 2007-9-27 15:35:47
I am hitting a wall. I am trying to make an https connection from my servlet code on WebSphere 4.0 to another server. I've installed the jsse as an extension into the java/jre/lib/ext in the websphere directory. I've updated the java.security to the ...
I have just created two wrapper classes for creating TLS (Transport Layer Secure) Sockets in jdk1.4. It is not much, but does the SSL handshaking for you.implementations:-server-clienthere is the link: http://ece.uprm.edu/~s987481/jsse_wrapper.htmlAny suggestions, just email them to ...
Sorry to ask such a simple question. I am new to jsse and I would like to ask how to open and HttpsURLConnection. Any simple procedure outline or reference material are welcomed.Thank you very much~