javax.net.ssl.HttpsURLConnection Problem

1798 byte By rafcioa at 2007-10-1 6:43:09
Hi,I want make an HTTPS connection from JBoss: // build url and connectionURL url = null;try {url = new URL(mmsURL);}catch (MalformedURLException murle) {logger.fatal("sendMMS() failed build url to mmsURL=" + mmsURL, murle);throw new OMAException("MMS::sendMMS() failed build url to mmsURL=" + ...

HTTPS connection need guidance

1563 byte By anand123a at 2007-10-1 7:15:47
Hi All,I am a new to java.I am building a application which calls a web service and gets a response in xml format.I have to read the response and make the decision accordingly.I don't have clear idea how to develope it?we are running our application in jsp.URL to be called (Through ...

how to implement ssh in java

177 byte By vivek_jape_suna at 2007-10-1 7:19:07
HiI need to connect to the server using ssh connection and some some commands interactive. Can some one suggest the method in creating the connection.Thanks

Strange problem with SSL Sockets using more than 10 Clients

656 byte By chrislia at 2007-10-1 7:24:33
Hi I磎 using Jsse ( JDK 1.4.2_06 ). I have coded a Client/Server Applikation acting over SSLSockets or over unsecured Sockets. If I use unsecured Sockets everthing works fine, but if I use SSLSockets for the Connection and about 20 Clients, the Clients often can磘 connect to the Server and the ...

Is it suffcient to put CA certificate in key store?

702 byte By frotschia at 2007-10-1 7:31:33
Hi,I want to establish an SSL connection with server-side authentication only. Is it sufficient to put the certificate of the CA into the client-side keystore when using JSSE?I know, that the server will send its certificate to the client during the SSL handshake. The client will have to ...

Getting javax.microedition.pki.CertificateException:Certificate does not co

710 byte By Greig_Roboa at 2007-10-1 8:09:53
Hi allI抦 trying to apply SSL (HTTPS) to a midlet to servlet communication model using Tomcat 4.0.6., wirless toolkit 2.2 and SDK SE v1.4.2_07.I抦 following a tutorial by Qusay H. Mahmoud available at: http://developers.sun.com/techtopics/mobility/midp/articles/https/Problem is when i run the ...

Error occured while reading identity data: failed to decrypt safe contents

6358 byte By spaddya at 2007-10-1 8:13:13
Hello,We are trying to access Tibco JMS server through SSL using JNDI lookup. Getting the following error, while executing a sample java file.Java Version -java version "1.4.2_05"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)Java HotSpot(TM) Client VM (build 1.4.2_05-b04, ...

rmi over ssl in jdk1.5.0

835 byte By delphoia at 2007-10-1 8:53:35
hi,i am trying to connect a remote machine with rmi over ssl. but i got the following exceptions;java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error Caused by: ...

Help! How to put a keystore file inside a jar?

1164 byte By erv2a at 2007-10-1 8:56:40
Before i build the jar file, my keystore file "key1" which generated by keytool is in the same directory of my main class.there is also another txt file called "Extras", where there is one entry in there:javax.net.ssl.trustStore=key1before the program does anything, i put:try{InputStream ...

java.security.NoSuchAlgorithmException

1228 byte By nzezelja at 2007-10-1 9:12:21
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RC4at javax.crypto.Cipher.getInstance(DashoA12275)at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(JsseJce.java:90)at com.sun.net.ssl.internal.ssl.CipherBox.<init>(CipherBox.java:84)at ...

Keystore not created

952 byte By Scoteya at 2007-10-1 9:23:16
I ran into some trouble with my keystore, and by the way, as you will soon discern, I am a newbie to Security. I deleted by .kestore file because I was getting some problems connecting to a secure socket, and I think that my keystore stopped getting updated with my various entries from ...

Problems trying to retro fit SSL to server

2885 byte By eljackstera at 2007-10-1 9:36:21
Hi all, im trying put SSL sockets into my server, but am encountering a few problems, mainly with the following two linesSSLSocket sslsocket = (SSLSocket) sslserversocket.accept(); in my Accept function (null pointer exception - trying to cast a Socket to an SSLSocket?)and //sslserversocket = ...

How does https really work?

1941 byte By Capitale_Alexa at 2007-10-1 9:42:00
Hi everyone, I have a question on a particular way to use https that, at first look, seems incorrect. I noticed that some sites ( Paypal.com, americanExpress.com ) do not use the same pattern that everybody else does. That pattern is as follows:As soon as I am redirected on the page of the site ...

HTTPS --> java.io.IOException: AVA parse, hex values NYI (JDK 1.3, JSSE 1.0

1650 byte By asfdafdasfda at 2007-10-1 9:48:27
Hello,I have problems connecting to a certain SSL-Server using JDK 1.3 andlatest SUN-JSSE (1.0.3_03). The SSL-server presents a Hex-Codedsubject value:chain [0] = [[ Version: V3 Subject: CN=www.xxx.com, OU=xxx, O=#xxx, L=xxx, ST=xxx, C=xx Signature Algorithm: MD5withRSA, OID = ...

Tomcat SSL not working on Netscape browsers, Please help!!

720 byte By c@sxy_123a at 2007-10-1 9:56:50
Hi,I'm using Java 1.4.2 and Tomcat 5 for testing java web applications. Some jsp pages in my application have to use SSL, so I created a default keystore as specified on the Tomcat website(url is below) and updated the server.xml ...

Where does j_security_check store the name of the user?

234 byte By kinder75a at 2007-10-1 10:13:21
Hi!, I have an application with form based authentication. I woud like to know How I can Know the name of the user with Java code after the authentication.request.getAttribute("j_username") don't work. Thank you.

How to log socket connections

618 byte By petgu_a at 2007-10-1 10:13:41
We're currently interested in logging connections to our CORBA server. These events should be logged:Incoming TCP connectionClosing TCP connectionEstablished/failed SSL connectionWe have no access to the loop in which sockets are created (accept) so the approach may be to replace the socket ...

Authenticate client that uses IE

10740 byte By harmmeijera at 2007-10-1 10:14:22
I try to undersand SSLSocket and the setWantClientAuth(true)Here is what I want to accomplish, I have a java app listening to port 443 that uses a keystore containing an imported clientkey. When a client makes a connection to that server (other java app) it needs to use a keystore where the ...

HTTPS Problem over proxy

278 byte By synnottra at 2007-10-1 10:39:25
Hi,I've (using URLConnection) written a program which can do GET fine through a HTTPS proxy with authentication. However, when I try to POST it says that I'm not authenticated; it seems to be discarding the authentication data. Any ideas?ThanksRob.

Java SSL TrustManager

4563 byte By lucio1982a at 2007-10-1 10:55:14
Hello,I'm doing a simple project which concist in creanting a SSL Socket client. This client must connect to a SSL server with a "false" certificate. So it seems that I need to create a trustmanager which accept all the certificate.Afer serching on internet and on this forum, I wrotte a code ...

SSLSocketEngine

549 byte By ejpa at 2007-10-1 11:05:34
Is anybody here is interested in using a small package of SSLSocketChannel, SSLServerChannel, and SSLSelector implementations?I am contemplating making them available for a small licence fee in the near future if there is enough positive reaction.They were initially developed as part of the ...

SSLException: New session creation is disabled

1438 byte By DeepWaterBaya at 2007-10-1 11:27:09
Hi All,I am writting a javaclient to talk to my back-end SSL IBMHTTP server. IBM_HTTP_SERVER/1.3.19.4 Apache/1.3.20 (Unix)With my coding, I can successfully go through the handshake part, and also get the inputStream, outputStream, and even try to print sth out through the outputstrem without ...

Default SSL Context Protocol on Java 1.4.2

393 byte By kcooka at 2007-10-1 11:36:50
What is the default SSLContext for Java 1.4.2? Specifically, if I use the default SSLSocketFactory, the SSLContext is automatically created behind the scenes. The protocols supported on this version are:SSLSSLv3TLSTLSv1I am moving away from the default SSLSocketFactory, but am wanting to ensure ...

can not establish connection to https://www.mirago.com

1554 byte By byya at 2007-10-1 11:39:12
Hello,This is a really simple code. I wanted to establish connection to a https site by using apache API. Here is the code:import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.GetMethod;public class SSLClientTest { public static void main(String[] args) ...

SSLPeerUnverifiedException after sucessfull certificate exchange

432 byte By dopa at 2007-10-1 11:43:40
Hi,I'm trying to implement server side EAP-TLS authentication, so I usedSSLEngine from jdk 1.5. I can see the server receives the clientcertificate and finds trusted certificate as well, then handshakefinishes. However if I try calling getPeerPrincipal() afterwards I ...

BAD_CERTIFICATE

1447 byte By jennyhua at 2007-10-1 11:46:02
Hi,I tried to post data to https site, but I got error <Exception during handshake, stack trace follows> javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown ...

sslsocket over plain socket with certificates

845 byte By dhoogla at 2007-10-1 11:48:16
H,I'm trying to let a ssl client server app, that is talking over an ssl socket open a plain socket and then nagotiate the same connection as before with the directly as ssl opened socket. (Why?: to let it work with BEEP/beepcore.) I use the same keystores and trust certificates as before. ...

Problems with an SSL connection

2969 byte By @Tremena at 2007-10-1 12:02:34
I'm trying to execute a Post request using HTTPS. To achieve that I'm using commons-httpclient v.3.0rc1 and a custom SSLSocketProtocolSocketFactory that can work with untrusted self-signed certificates.My code works on Windows 2000 Pro, but it fails on Linux (Suse Linux 8.2). However I'm ...

Getting HttpsURLConnection to work even with bad certificates

2471 byte By SteveMGardnera at 2007-10-1 12:06:23
Some websites don't configure their certificates correctly so that a domain name mismatch happens when verifying the certificate for an https site. Most browsers will bring up a screen when this happens that will allow you to approve the certificate anyway. Is there a recommended way to do ...

ssl handshake details

108 byte By m_asasina at 2007-10-1 12:19:48
Hi,Is it possible to show ssl handshake process step by step and how? Or is it totally hidden?

default SSLServerSocket, SSLSocket

1111 byte By pefea at 2007-10-1 12:39:49
HelloI've a question about the default behavior of SSLServerSocket and SSLSocket. What is the influence when I use ctx.init(null, null, null); for quality of the SSL Connection?Here my code:RMIServerSocketFactory:public ServerSocket createServerSocket(int port) throws IOException{ SSLContext ...

is it possible to take control over ssl handshake process?

367 byte By m_asasina at 2007-10-1 12:40:51
Hi,I'd like to write an application that will show whole ssl handshake process step by step. So I was wondering if it is possible to do something like that: when user connects his ssl client to ssl server he can push eg."Next" button moving to the next handshake step. But to do that i must ...

Secure socket over regular socket (jsse) for Server

692 byte By CrashFixa at 2007-10-1 12:49:28
Hello!I have some guestion i hope u will understand.. i am building a server/clients application with secure connection.. i have done a server who init secure socket before it gets the clients.. and problem here is that server reads just one public key from all client the public key and private ...

secure encription in jsp

288 byte By gionnyDeepa at 2007-10-1 12:52:16
hi all I want establish a secure connection with a db...but i do not wat that my password goes through the net...so I think of a validator server that receive the matching result of the client password and not the password...but i do not know how to implemnt it.Any idea....

https and SSL

307 byte By gopkrisha at 2007-10-1 12:52:38
Hi All,I am going to send a data to a site along with the url having https say https://targtsite.com/post?mydata. i want this 'mydata' to be completely secure.Is it enough that i send the information as https or use SSL protocol to send the data secure. Kindly reply .Thnx in ...

Can not run admin console Websphere

280 byte By Java@Harmeeta at 2007-10-1 12:56:42
I am using Websphere Application Developer 5.1I tried running http://localhost:9090/admin but it is not coming up with any thing.Do I need to do some special confiuration for running that ?Please helpHarmeet

SSLSocketFactory.getDefault() Very Slow

331 byte By wbynuma at 2007-10-1 13:04:56
I am using a third party package (HTTPClient) that makes use of the SSLSocketFactory.getDefault() method. I have found that the getDefault() method is very slow. It takes approximately 6 seconds to complete on my machine. Are there any tips to speed up this call?I am running the latest JSSE ...

javax.net.ssl.SSLHandshakeException in SSLEngine

309 byte By yeeczehoula at 2007-10-1 13:17:29
How do I catch javax.net.ssl.SSLHandshakeException when I am using SSLEngine? For instance I would like to track is server certificate trusted. It seem that if the server cert is not trusted SSLEngine is just pause there with SSLEngineResult.HandshakeStatus NEED_TASK. Please advise. Thanks in ...

javax.net.ssl.SSLHandshakeException:bad handshake record MAC

864 byte By yeeczehoula at 2007-10-1 13:24:00
Hi,I has a SSL server that establish a ssl connection with ssl client, both of the client and server are written in java. I encounter a "javax.net.ssl.SSLHandshakeException:bad handshake record MAC" error when the client and server establish ssl handshaking.what is bad handshake record MAC ...

SSLEngine, shaky handshake

2334 byte By Joorina at 2007-10-1 13:32:19
I'm a C coder who has plunged into the Java dominion and my task at hand is to set up secure communications between a server and its clients. I've found sample code using the classes ChannelIO.java and ChannelIOSecure.java. I merged these two classes into one, since I'm only ever going to ...

What is wrong here?

1643 byte By CrashFixa at 2007-10-1 13:37:20
Hello!I have a problem and i dont know what could it be.. i get this error message:javax.net.ssl.SSLHandshakeException: no cipher suites in commonat com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)at ...

SSLEngine

376 byte By facona at 2007-10-1 13:40:21
Hi,I am trying to use SSLEngine and replace my SSLSocket because i would be able to do a handShake within to stop the communication...I think i can use SSLEngine with different I/O : streams, bytes, socket...but i can't see how to precise that...So, ma question is How must i do for use a ...

NIO and SSLEngine tasks

1337 byte By ronnystandtkea at 2007-10-1 13:41:48
Hi,I am implementing a server that needs to handle a massive amount of SSL connections. Therefore I choose to use NIO in combination with SSLEngine. First I implemented the basic nio stuff including selector, buffer handling and flow control. It works and scales really well.Now I want to add ...

JSSE provider that support SSL version 2

85 byte By uud_ashra at 2007-10-1 13:55:44
Is there anyone knows JSSE implementation/provider that support SSL version 2?

Unrecognized SSL handshake

2369 byte By jennyhua at 2007-10-1 14:00:16
Hi, I tried to call a third party secure web service, but I got SSLException:Unrecognized SSL handshake. I can't figure out. Any help will be appreciated.%% No cached client session*** ClientHello, v3.1RandomCookie: GMT: 1099581089 bytes = { 229, 46, 98, 79, 176, 72, 53, 110, 43,203, 250, 3, ...

truncation attack

599 byte By yeeczehoula at 2007-10-1 14:01:30
I call sslEngine.closeInbound after reach end of stream in socket channel. This exception is thrown: javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)at ...

What is fastest cipher?

679 byte By bcarntsona at 2007-10-1 14:05:37
Hello all. I am using the following cipher:SSL_DH_anon_WITH_RC4_128_MD5Is this the fastest cipher available? I'm not really concerned between symmetric/assymectric ciphers, certificates, etc. I just want some "minimal" network encryption, and strength is not hugely important.When encryption is ...

Tunnel SSL through Proxy

592 byte By sk17a at 2007-10-1 14:09:30
Hi evry body,I am trying to implement an architecture composed from a browser, an application proxy and a secure Web site. I search for how can I create a secure tunnel between the browser and the web site through the application proxy?for the moment, my application proxy doesn't do more than ...

Bad handshake record MAC

768 byte By yeeczehoula at 2007-10-1 14:12:52
I got the following msg when my SSL server was establising ssl connection with client. javax.net.ssl.SSLHandshakeException: bad handshake record MACat com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)at ...

javax.net.ssl.SSLException: untrusted server cert chain

343 byte By lwgoha at 2007-10-1 14:13:04
I run a program using JDK 1.4 to connect to remote server. I did not encounter any exception. If I run using JDK 1.3 / JDK 1.2, I encounter javax.net.ssl.SSLException: untrusted server cert chain.I had included jnet.jar, jsse.jar, jcert.jar to classpathPls advice how i can overcome this ...