javax.net.ssl.SSLHandshakeException

637 byte By Bistmastera at 2007-10-2 8:37:37
Hey guys...ive got errors in my codes and i cant find a way to solve it. I already did gave the best yet it still doest work. :( Maybe this is just so easy for you. The error:Exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: ...

zlib compression over TLS?

166 byte By orzechowskida at 2007-10-2 8:43:45
Do SSLSocket objects support zlib compression? Is there a way to specify the zlib compression method in the TLS handshake sent by my client to a remote server?

JSSE supports certificate revocation ?

78 byte By new4javaa at 2007-10-2 8:55:57
Does JSSE support verification of certificate revocation ?Thanks

Connection to LDAP with TLS : SSLHandshakeException

3585 byte By mikaeltoulousea at 2007-10-2 9:25:34
Hello, I am trying without success to make a TLS connection to an OpenLdap directory. It works from ldapsearch but not with java code. Here is what I have done : -I added the authority certificate (cacert.pem) in our keystore file (keystore.jks)keytool -import -trustcacerts -keystore ...

java.rmi.RemoteException: HTTP transport error:

1165 byte By pacoBella at 2007-10-2 9:28:24
Health! We have an application that calls a web service using JAX-RPC. We also use a certificate for client-authentication. Furthermore we have another application on the same JVM that also does https connections with JAX-RPC. Depending on which starts first, the application crashes with the ...

Importing an Existing certificate into Keystore

693 byte By a.gibsona at 2007-10-2 9:33:23
I am having trouble adding an existing certificate into a Keystore using the keytool. The certificate has been signed by a CA. I have both the .cer file and also the .pfx file. Does anyone know how I can add this certificate into my Keystore?Everything I have read about adding certificates into ...

SSL handshake failure when trying to connect to a https URL

987 byte By amit_vijayanta at 2007-10-2 9:34:33
Have a simple program written to fetch response off a URL. Worked correctly on a https URL like "https://www.verisign.com/".However it did not work for another URL (for e.g. abc.com) and threw exception saying:AUTHENTICATION FAILURE: [Security:090508]Certificate chain received from abc.com - ...

How safe is to exchange encrypted sensitive data over unsecured network

992 byte By _SSNS_a at 2007-10-2 9:38:45
Hi All: We have developed a signed applet to display sensitive data. The applet communicates with Server over SSL connection. Applet is developed with SUN JDK 1.4.2_06 and uses JSSE to communicate with the Server, which is using openSSL. After we deployed the applet to end customers, we found ...

Keystore to cacert in Java

668 byte By Shiranthaa at 2007-10-2 9:50:46
Hi,Please help me with this SSL problem. I am trying to run a small web service application over SSL. Tomcat is the web server. I have created a self signed certificate using the command "%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA"which created a .keystore file for me. I have put ...

Is it possible to change encryption keystore more than once?

2393 byte By midgeta at 2007-10-2 9:53:49
It seems that once my environment has been informed of a keystore to use for ssl communication, it can't be changed. Is this so? I need to be able to do the following:1) Set a keystore for ssl communicaton2) Establish an ssl connection, (send and receive stuff), and end the connection.3) ...

I will confront with an online-paying project,some questions about security

264 byte By johnnylzba at 2007-10-2 10:04:59
My company will start a large poject, an online-paying project like "PayPal".I have no experience in java security?So,i want to konw,how can i get a QuickStart with java security?Should i leanrt HTTPS first?What's my first step?

Sending xml through https works in browser but not in my program!

805 byte By Folguerasa at 2007-10-2 10:06:49
Hello all, I have an application that posts requests through an https connection to a web server. When everything goes well, the server is supposed to send me an xml file. Once my String is encoded and ready to be sent, it looks something like ...

Problem in Client authentication in JSSE on a web service

56811 byte By java_ardent_fana at 2007-10-2 10:31:57
Hi,I am having a Web service running on my Web server (Sunone 6.1). I need to implement Security on it using JSSE. It has to be a MUTUAL authentication.I have installed all the certificates and CA certs on both Client and server. But when I try to call the web service from a standalone Java ...

HttpsURLConnection and emulating browser input to form FILE input field

1351 byte By BrendanFa at 2007-10-2 10:48:11
Hi. I am using the HttpsURLCOnnection object to connect to a secure site. I am connecting successfully, and I am able to retrieve both an input stream and an output stream. There are 2 pages to navigate: Login page and then a file upload form page. I have 3 questions:1.)I am setting an ...

SSL-enabling virtual hosts

1170 byte By smithsaa at 2007-10-2 10:58:53
I'm writing an HTTP server application that will proxy several other servers, meaning that when a request comes in, my server will simply shuttle packets back and forth between the client and the real destination. It can do that because the HTTP HOST: header contains the original request, and ...

how to implement EAP using java

140 byte By otixa at 2007-10-2 11:12:51
hii need to know how to impelement EAP using java for my thesis. If anybody knows API's, docs, howto....thanks a lot!!

SSL client authentication

3301 byte By rgiria at 2007-10-2 11:22:05
Hello,We need to post data to a secure URL, but for that they need the client certificate from our side. In the .net code that they have supplied how to do that, I see they have something like adding the client .cer file to the HttpRequest before sending the request.The .net code looks like ...

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

248 byte By BandaruNarendraBabua at 2007-10-2 11:24:55
Hi All,am getting the below error when i send request to other client server.Can you please let me know how can i solve this issue. Whether the issue is my side or the client side.thanks in Advance,Narendra

Cipher suite equivalence

166 byte By neilha at 2007-10-2 11:29:06
Hi,I am after the TLS version of this cipher suite:SSL_RSA_WITH_3DES_EDE_CBC_SHAOr are they just one and the same?Any ideas anyone?

access to https

1888 byte By raulrga at 2007-10-2 11:57:06
Hi, excuse me for my english, im spanish ;DIm trying to access to HTML code of a web with this code:static protected void getURL(String u) {URL url;InputStream is;InputStreamReader isr;BufferedReader r;String str;try {System.out.println("Reading URL: " + u);url = new URL(u);is = ...

socket connection through ssh tunneling

1111 byte By oleg_misha at 2007-10-2 12:13:26
Hello All,I'm trying to establish simple socket connection between two firewalled machines. I'm using cygwin and open ssh. Idea is just to use ssh tunneling.Creating sockets: new ServerSocket(...); on server, and new Socket(...); on the client.After some googling I found the following command ...

Custom SSLSocketFactory

261 byte By GauravLaturkara at 2007-10-2 12:14:43
Hello,I want to write my own SSLSocketFactory. I want to take the certificates used, at runtime and not through a keystore file. Is it really possible? Where can I find some code samples on this?Thanks in advance.Gaurav

Tomcat and the Flaky folder for .keystore

856 byte By psu99a at 2007-10-2 12:18:33
Here is my dilemma.I have create a .keystore file using genkey : no problemI am running Windows XP ProI am using Tomcat 5.0I am start Tomcat as a service using the tomcat5w.exe programHere is where I have a problem.Tomcat is not consistent as to where it looks for the .keystore fileFolder ...

SSL connection problem with JDK1.3

3210 byte By Leidelmeijera at 2007-10-2 12:32:36
We connect to an external server with our application and recently the external party update the SSL certificate. After installing the new certificates the following error occurred:16-02-2006 17:50:22HTTP JVM: java.io.IOException: unsupported keyword OID.2.5.4.516-02-2006 17:50:22HTTP JVM: at ...

apache xmlrpc over SSL?

3350 byte By VC@TWa at 2007-10-2 12:54:24
Hi, allI tried to use apache xmlrpc over SSL transport, the following 2 simple code works in command line: server.java --public class Server { public Server() {import javax.net.ssl.*;import ...

Can client and server use different JSSE provider?

128 byte By JSTigera at 2007-10-2 13:00:33
I have a client using SunJSSE, and server using IBMJSSE. Is this kind of configuration supported?Thanks,JST

i would like to know how to "switch" (activate/deactivate) ssl tomcat login

592 byte By omm79a at 2007-10-2 13:05:55
well, i have a question, first i have been configurate all ssl on tomcat, and it works but have you ever notice while you are loging on hotmail or gmail, there is a page where you can access with your login and password in a normal http page but when its verifing your account switches quickly ...

port scanner

978 byte By meena.chandrua at 2007-10-2 13:15:09
hi allwhen i'm trying to connect thro socket i'm getting the exception CONNECTION EXCEPTION:CONNECTION REFUSED:CONNECTcan u verify and tell me whether my code is correct for port scanner. { InetAddress hostAddress=InetAddress.getByName(host); ...

Apache XML-RPC & SSL

979 byte By Vladda at 2007-10-2 13:15:12
I have a client desktop program that should connect to the server via xml-rpc and SSL. I use SecureXmlRpcClient and get the exception while execute method call:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderExceptionat ...

Https erquest got converted to Http

1663 byte By RizwanYousufa at 2007-10-2 13:46:41
Ive an application built using JSF , Hibernate . . running on Jboss - Linux . The app runs fine on HTTP but when I try to run the app on HTTPS .. the first page that is login page opens fine with https but as I provide user/password and click login .. the next page opens up with http .. the ...

using LDAP as a keystore/truststore

556 byte By sbrugaliScreena at 2007-10-2 13:47:16
Hi,I have a Java application that must open secure communication with a WEB Server. Today, my Java application uses the default keystore/truststore provided by JSSE (stored into PKCS12 file format).I would like to store the truststore/keystore into an LDAP DB and that my Java Application will ...

WSDL2Java SSL problem

525 byte By bmcganna at 2007-10-2 13:48:52
Hi,I am trying to run WSDL2Java on an https URL and get the following error java.io.IOException: HTTPS hostname wrong: should be <ip address>I have added the certificate to the keystore and have checked that the URL and cn of the certificate match but I still get this error. When I turn ...

SSLEngine closing prematurely on SSLHandshakeException?

918 byte By emha at 2007-10-2 14:16:49
I have worked with the SSLEngine using non-blocked IO and it mostly works.I do have a problem when a client connects and I get WorkerThread-1, fatal error: 40: no cipher suites in common javax.net.ssl.SSLHandshakeException: no cipher suites in common WorkerThread-1, SEND TLSv1 ALERT: fatal, ...

Page don't open after SSL configuration

536 byte By lghm@aeiou.pta at 2007-10-2 14:20:09
HiI've configured my tomcat server to use SSL with the explanation in tomcat site. After this configuration when I try https://localhost:8443 the page try to open for a long time and then I get The page cannot be displayed error.I'm using Tomcat 5.5.12 and JRE 1.5.0_06-b05 and I have the ...

Connecting to https with jdk1.5 throwing InvalidAlgorithmParameterException

4272 byte By matix123a at 2007-10-2 14:23:26
Hi,My current system has jdk1.3, weblogic7.1 and axis1.1.I have a simple class in java which I use to connect to https://*.jsp.Here is the sample code.System.setProperty("javax.net.ssl.trustStore","/usr/local/client.keystore");System.setProperty"java.protocol.handler.pkgs", ...

SSL: JSSE Question

201 byte By AwesomeCowa at 2007-10-2 14:46:26
Hi guys,Very quick question...Does JSSE extend beyond v1.03 (v1.04 ?) for sdk 1.3.1_16/17 or are we required to upgrade to version 1.4.2 of the sdk ?Best RegardsSteve

Reverting from HTTPS to HTTP

1393 byte By Ackua at 2007-10-2 15:12:48
Right now I am using HTTPS for a secure login by configuring in JBOSS4.04 RC1 with bundled Tomcat: <security-constraint><web-resource-collection> <web-resource-name>Login</web-resource-name> <url-pattern>/faces/SecureLogin.jsp</url-pattern> ...

Simple way to generate a new RSA key whit keytool

293 byte By mcarlinga at 2007-10-2 15:14:44
Is there a simple way to generate a new RSA key whit keytool. Perhaps a small java program!Right now am using by cmd >keytool -genkey -keystore mySrvKeystore -keyalg RSABut it would be fine if I could write all 搇abels?and just execute at onceRegards\Micke

Sending secure files

761 byte By shibania at 2007-10-2 15:27:41
We send PGP encrypted files to business partners via FTP. We have automated this process within a Java framework. There are some partners, however, that require file transmission via https. They supply us with a host address, a username, password, and a file dropoff directory. We upload the ...

Does anyone have working example(post method to an ssl server (JSSE 1.0.3)

205 byte By bmart22a at 2007-10-2 15:33:28
Does anyone have working code that uses the "POST" method to send raw text (xml format) across the wire to a ssl server using JSSE 1.0.3 that they can post or send to me: (brian.martin1@pw.utc.com).

JSSE Server Performance Problem handshake takes several second and max CPU

16175 byte By neilha at 2007-10-2 15:35:11
Hello,I am hoping someone may be able to help with this performance problem. It seems to take a couple of seconds for a TLS connection to establish over TCP and then when I make several simultaneous connections to my server, performance becomes really bad. For example 10 simultaneous ...

A question out of left field

186 byte By shibania at 2007-10-2 15:41:02
This is a hypothetical question:If one were to encrypt a file using PGP encryption, would there be any reason to send it over an SSL connection? Or would that be redundant?

Help with SSL connection for self-signed CA

14912 byte By jeffraaba at 2007-10-2 16:05:01
Previously I was able to connect via HTTPS to a server at a company called NYISO for a client. The client had a pkcs12 certificate issued by an intermediate entity "Certificate Manager" issued by a CA "NYISO Root". To make secure connections we had to create a JKS truststore from an IE export ...

Problem with client authentication

6955 byte By robmenniea at 2007-10-2 16:20:11
Hi Everyone,Anyone able to help with a Client Auth problem that is driving me crazy. I am trying to connect to a server using HttpsURLConnection with client authentication. The code was working fine but it had to be moved to a new server and how it is getting a bad_certificate error. I have put ...

SSLSocketChannel (for Dean & anyone else interested in the topic)

2103 byte By ejpa at 2007-10-2 16:20:15
In my SSLSocketChannel implementation I've come across the following problem situation that I'm not sure how to handle.Assume we have an SSLSocketChannel which provides a write(ByteBuffer) method which both wraps and writes to the channel, much as for SSLSocket.If data (plaintext) is wrapped ...

Possible to have certificate with out any application servers

1181 byte By rraam75a at 2007-10-2 16:48:57
Hello All,I need to make an https call to a remote system from my windows machine. My system has only j2sdk1.4 environment and no application servers in my side. My remote system expects me to send digitally sign the data and sent along with the certificate of mine. My question is 1. Do we need ...

javax.net.ssl.SSLException:

326 byte By RajiReddya at 2007-10-2 17:26:01
I have created one SSLClient Socket and SSL ServerSocket programs.When I am running the server side program, the following exception is throwing..javax.net.ssl.SSLException: No available certificate corresponds to the SSL ciphers available.If anybody helps on this, it would be ...

Problem reading data from a nio socket using SSLEngine

42816 byte By ngreniera at 2007-10-2 17:26:34
Hello,For a specific need, I've done a simple HTTP server which receives HTTPS incoming POST requests. The requests are a simple HTTP 1.1 request which post data using XML inside of the content.My problem is that often (not always) my server is not able to extract the content of the request. ...

How do I import the private key into the certdb

378 byte By llchen2a at 2007-10-2 17:33:44
Hi:I have a private key and a signing request generated by openssl and got the certificate signed and sent bcak by a CA. I can use the certutil to import the certificate into the NSS certdb but I have not figured out how can I import the private key that associated with the certificate into the ...

java.net.UnknownHostException

3018 byte By alberto_aga at 2007-10-2 17:48:02
Hi all, I磎 testing some code and trying to connect to a secure site through JSSE. When connecting I磎 finding all the time the same exception: java.net.UnkownHostException. This is the exception thrown:java.net.UnknownHostException: www.paypal.comat java.net.PlainSocketImpl.connect(Unknown ...