SSLProtocolException: no more data allowed ...

1526 byte By Developer_Named_Aarona at 2007-11-27 11:59:04
Hi all, am implementing a SSL client and the server is an embedded system running some proprietary version of SSL. I can connect to the server with openssl, but when using a java application I get the following error:main, handling exception: javax.net.ssl.SSLProtocolException: no more data allowed ...

Client Authentication in web service ( client side only )

741 byte By Sohaib_ur_Rehman_Khana at 2007-11-27 11:53:54
Hi,How I can tell java to use this particular client certificate in mutual authentication. I have two certificates 1) cacert.pem and 2) client.pem (includes private key), client.pem is signed by cacert.pem and also contains the private key. I have the wsdl file for the webservice that I have to ...

How to avoid deleted projects being deployed when server starts

666 byte By another_java_guya at 2007-11-27 11:35:41
Hi All,I have created some project in RAD 7 for some testing purpose with WAS 6.1.Now problem is I was not aware of the fact that WAS 6.1 does not work with local workspace and it shares all the workspaces. So after sometime I deleted those workspaces from Windows file system and not by opening ...

multiple keystore files

240 byte By pietro.maggia at 2007-11-27 11:23:59
<p>Hi,</p><p> I use JSSE to connect to different mail servers throuhg ssl. I need to use a different truststores (say: "store1" and "store2"). Is there some way to statically tell to the java environment to use both files ?</p><p>Pietro</p>

Client Auth failure:SSLException Received fatal alert: bad_certificate

2269 byte By dynamicdhiraja at 2007-11-27 11:23:30
Friends, I have managed to establish a one -way https connection between the client and the tomcat-server by keeping the client-Authentication=false ...

Help! ClassCastException with Tomcat and HttpsUrlConnectionOldImpl

665 byte By brylawskia at 2007-11-27 11:00:12
Hi,I am trying to perform an HTTPS call from a servlet running under Tomcat 5.5, JDK 1.5.0 . When I do, I get this error:java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImplat rcopia.util.WebUtils.setAutoVerify(WebUtils.java:1398)at ...

Tomcat 55 Apache2 and SSL

927 byte By paul@cumonian.coma at 2007-11-27 10:59:02
Aloha @all,I am trying to setup SSL with tomcat. SSL itself is already running and can be accessed through Apache, however, whenever I try to access ssl on tomcat, I get a 404 message screen. Now I got a feeling that this could all result of a missing connector script in the server.xml file... I ...

Override/replace com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl by custo

885 byte By dynamicdhiraja at 2007-11-27 10:55:17
Friends, I have created a custom MySSLProtocolSocketFactory class which implements ProtocolSocketFactory class .I have implemented the overloaded createSocket() method of this class. However on using this class in org.apache.commons.httpclient.protocol.Protocol class , the jvm seems to pick up ...

Getting Java error in firefox

16896 byte By ssnkumar123a at 2007-11-27 10:53:29
Hi,When I visit webpages with Java content, I am gettling errors.The version of Java installed on my machine is:java -versionjava version "1.6.0_01"Java(TM) SE Runtime Environment (build 1.6.0_01-b06)Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)Here is the list of errors that ...

SSL Question

596 byte By TK009a at 2007-11-27 10:45:26
Hi,I have a browser client that talks to a servlet using mutual authenication over SSL/HTTPS. This I believe secures the application against man in the middle type of attacks but am I right in assuming that this traffic could be intercepted by a local http proxy on the client machine - possibly ...

Question About Alert #102997 - Flaw in SSL/TLS Handshake Requests

775 byte By sameba at 2007-11-27 10:43:54
Hi Everyone,There is a new (as of July 10th) alert at: http://sunsolve.sun.com/search/document.do?assetkey=1-26-102997-1 , titled, "Java Secure Socket Extension Does Not Correctly Process SSL/TLS Handshake Requests Resulting in a Denial of Service (DoS) Condition".Does this problem effect sockets ...

Error in tomcat 4.1 https config

596 byte By deepak@stara at 2007-11-27 10:39:13
Hi all,I have configured SSL on tomcat 4.1 using keytool -genkey -alias tomcat -keyalg RSAThe security file is created. when accessing the site it says that there is a problem with the certificate. The following is the error:The name on the security certificate is invalid or does not match the name ...

unable to find valid certification path to requested target--Sun Are u ther

1372 byte By dynamicdhiraja at 2007-11-27 10:30:39
Hi ,I am trying to establish an https connection to a Web-application in Tomcat .I have generated a keystore and trustore and have used a standalone Client application to use the above files and establish contact with a remote web-application . I have also added keystore file in the bin folder of ...

Overriding HostnameVerifier

275 byte By EarnieDa at 2007-11-27 10:25:32
<p>Is there a way via a system property or other mechanism to specify a different HostnameVerifier? I am using a system that I do not have source code to that is failing and I need to allow all host connections.</p><p>Thanks in advance for any and all help!</p><p>Earnie!</p>

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExcept

3830 byte By dynamicdhiraja at 2007-11-27 10:23:57
Friends,I try to connect a secured https web application deployed in Tomcat server . I am using a standalone java application using the org.apache.commons.httpclient. to connect the above web-application . However i get the following error ... Any suggestion in this matter would be highly ...

I still have this "SHA1 with RSA" problem in Java (Sun, are you listening?)

1346 byte By jamesbmorrisjra at 2007-11-27 10:05:45
I posted this (in bold) a few days ago:I obtained a CSR from GoDaddy. The only cipher suite GoDaddy supports is "SHA1 with RSA", which is not in the list of Java 1.6.0_01 supported ciphers.Can I get "SHA1 with RSA" for Java somewhere?Should I revoke my CSR from GoDaddy and get a CSR from ...

Don't have the right cipher suite

427 byte By jamesbmorrisjra at 2007-11-27 9:49:52
I obtained a CSR from GoDaddy. The only cipher suite GoDaddy supports is "SHA1 with RSA", which is not in the list of Java 1.6.0_01 supported ciphers.Can I get "SHA1 with RSA" for Java somewhere?Should I revoke by CSR from GoDaddy and get a CSR from somebody who can provide me with a ...

createServerSocket second time

861 byte By yixdsa at 2007-11-27 9:35:47
I am working on a project which need to reinitialize SSLContext, then > from SSLContext I do factory = context.getServerSocketFactory(); before > I reinitialize the SSLContext for the second time, SSLServerSocket was > closed by invoking sl.close(). (sl is the instance to ...

I do not want that my client authenticates itself with the server

1576 byte By DaleGroa at 2007-11-27 9:02:56
Hi !!!In my application RMI I do not want that the client must authenticate itself, I only need to authenticate the servermy application works well if in the client and the server I fset the keyStroe, but single I want to do it in the server, the client does not need ...

SSL Validation

560 byte By anewbiea at 2007-11-27 9:02:29
I am a new person to Java. I am using PKCS12 files to perform SSL Validation (using JDK 1.6.0_01) and am receiving the following SSLHandshakeException:sun.security.validator.ValidatorException: Extended key usage does not permit use for TLS client authentication.Note: This is happening when my ...

Truststore which trusts only one specific certificate?

378 byte By domEstica at 2007-11-27 9:01:04
Hello,I am able to set up a SSL connection for my client server program.But now I need the server to _only_ trust one specific user certificate. It must _not_ trust all usercertificates from a CA!If I only put a single user cert into the server truststore, I get an bad_certificate exception ...

How to run jar file

893 byte By BuggyVBa at 2007-11-27 9:01:01
Hello everyoneI'm learning to user JSSE and trying to develop a simple server-client program using SSL. I notice that if you need to give parameters to java command to run it. For example, if you follow the example code given at http://tvilda.stilius.net/java/java_ssl.phpthen you need to type ...

Connecting to a https://

2344 byte By dilip_jsfa at 2007-11-27 8:57:44
Hi,I have two requirements,1. To connect to a http:// site that takes a username and password to login. I have the code that checks url response for internal and external sites that do not have an authentication(login types). Now when i run this on a site that requires a login i get the ...

Windows-MY Problems

1507 byte By Toshi47a at 2007-11-27 8:48:35
I'm trying to use the certificates out of the Microsoft Certificate Store to open a URLConnection that requires a client certificate.Basically, I'm doing this-KeyStore store = KeyStore.getInstance("Windows-MY");store.load(null, null);KeyManagerFactory kmf = ...

java.io.IOException: TLS SSLContext not available

3639 byte By Arun_P_Johnya at 2007-11-27 8:30:23
Hi all,I'm new to https and SSL. I had my eclipse configured for non-ssl mode and working fine. now I'm trying to change my tomcat to HTTPS.I created a new certificate using the keytool and gave the password changeit. I found the .keystore file in my user home directory.I added the following ...

Certificate name != hostname -> does not throw exception!?

988 byte By eddiecjchianga at 2007-11-27 8:23:36
Hi all,When a certificate's subject name != hostname, a hostname not match exception should be thrown.But this is not so in my case, could someone provide me some hint?I am suspecting if it's got something to do with that I am using a truststore or security policy...The configuration ...

Error Importing Certificate file Using Keytool

1821 byte By Surendra_Varmaa at 2007-11-27 8:03:53
Hello FolksI am trying to import a certificate file provided by our Ldap Admin,I get the following error Please let me know if you have an idea why am i getting it. Does the size of the Key file matter ? it s around 4kbC:\j2sdk1.4.2_08\jre\lib\security>keytool -import -alias ldapsecurity ...

JSSE server to work with two client each on different p12 certificate

378 byte By yixdsa at 2007-11-27 7:51:47
Is it possible for Sun's JSSE server (has two certificates imported using Firefox->tools->option->viesw certificates-> then import->backup to save the concatenated p12 certs, and two CA certs imported using keytool) to work with two clients on different p12 certificate each?If ...

LDAP SSL Connection Error --javax.net.ssl.SSLHandshakeException: sun.secur

1378 byte By Surendra_Varmaa at 2007-11-27 7:43:48
Hello I am trying to connect to the LDAP server through SSL i have the certificate sent by the Ldap Admin i get the following exception.Any thoughts will b helpful***Thread-0, SEND TLSv1 ALERT: fatal, description = certificate_unknownThread-0, WRITE: TLSv1 Alert, length = 2Thread-0, called ...

Setting the system property javax.net.ssl.truststore

369 byte By warxsga at 2007-11-27 7:40:40
Hi all,I wrote a client application which sets the system property javax.net.ssl.truststore.Is the property valid for the client only ?I mean, i have to run the same client more times; every client has to use a different path of trustore and all client have to be run on the same computer.Any ...

Exporting a certificate...

224 byte By warxsga at 2007-11-27 7:34:37
Hi all,Is it right exporting a certificate from client using Internet Exoplorer ?If not what tool do i have to use?Whare the right steps to exporting the certificate ?Cheers. Stefano

Keystore and certificate and client application

1081 byte By warxsga at 2007-11-27 7:34:14
Hi all,I exported a certificate from the Internet Explorer of a customer of mine;i have been asked to specify a password and then i saved the certificate into a directory of my pc.Well, now i have to write a client application to connect to the site of my customer using his certificate.After ...

Who can tell me which directory the JSSE source code in?

124 byte By cyca at 2007-11-27 7:29:51
I get the source code of JDK5,but there are too many directories ,I don't get the source code of JSSE,I am beginner.

Creating a standalone client for https calling

590 byte By warxsga at 2007-11-27 7:08:18
Hi,well, i have to call an URL using https.I have a certificate to send to the URL for the authentication.How can i do this ?Is there a place where to put the certificate ?The certificate is installed on my Internet Explorer, so i exported it and save it on my computer.During the export process ...

Send a certificate to an https URL (standaonle application)

318 byte By warxsga at 2007-11-27 7:02:44
Hi all,I have to authenticate myself to a site calling the url in HTTPS mode.I have to do this through a standalone application and i have a cetificate for the authentication.After sending the certificate, how can i know if the authentication is failed or not ?Cheers. ...

How does one augment the default TrustManager for HTTPS Connections

1369 byte By Philippe.Bertrabda at 2007-11-27 6:53:37
I'm implementing HTTPS communication and I would like to programatically add trusted root certificates. Ideally, I would like to be able to get the default trust manager and do something like:public void checkClientTrusted( X509Certificate[] chain, String authType ...

SSl and FTP

263 byte By pradeep_selvaraja at 2007-11-27 6:46:53
Hi All, I am using apache's commons net for my FTP client program. I have no problems with that. Now how can i also add the SSL into this program. I am completely new with JSSE. Please provide me with pointers. Thank youPradeep

Strange Handshake problem

1801 byte By charlie.babitt1a at 2007-11-27 6:36:29
Hallo!I have the following simple piece of code that simply should connect to my tomcat using SSL. However I always get a strange exception. I run it using the VM Parameter: -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol. The really strange thing is, that when I test it ...

setting read time out with axis stub

319 byte By chintan.inda at 2007-11-27 6:33:35
Hi friends,In axis client, for stub I can set connection time out by stub.setTimeOutbut how to set read time out for the same?Or the setTimeOut acts as read time out itself and not connection time out?Please enlight me.Regards,ChintanAppreciate your help ...

help making PKCS#8 private key into PEM format?

1307 byte By cup_joea at 2007-11-27 6:24:02
Hi there,I need help making my private key in pkcs#8 to pkcs#8 PEM format. I've been stuck on this for a while any help is much appreciated! I've generated my private key using with the following: KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");keyGen.initialize(1024, new ...

Sockets on port

244 byte By schooltiger@walla.coma at 2007-11-27 6:20:34
Hi,I need the functionality that the serversocket gets the sockets inet addresses in the given port before the sevrer socket accept() method.Is there any possibility please let me know. Thanx in advance.Regards,Tiger

Reteriving Client Certificate in SSL Client Authentication

304 byte By .@_a at 2007-11-27 6:06:43
Is there any way to retrieve the client certificate in an established SSL Client Authenticated Session? I am using Tomcat Web server 5.5 in which server and client authentication are enabled. Thanks.. If I am posting this question in wrong forum then please redirect me to the correct ...

Javamial : Send mail over SSL

10563 byte By Lepr8a at 2007-11-27 5:45:49
I must send a mail use a SMTP with SSL.This is an example of my code :public void sendMail(String destinatario,String mittente,String oggetto,String messaggio,String fileName,String fileNameInMail)throws Exception{if (protocol.equals("smtps")){ Security.addProvider( new ...

Server that sends/recieves

365 byte By Delta_Trojana at 2007-11-27 5:38:22
Hello, I am trying to make a server that listens for incoming data as well as be able to send data when certain conditions are triggered. I have managed to get only one to work at a time because I used endless loops to check for incoming data, but I cant figure out how to get it to do both ...

customer SSL for smtp

2616 byte By salim1981a at 2007-11-27 5:22:31
helloI have a code it does not work and which enables to send an email via the server smtp.my problem it is that in my code I do not know how to negotiate the keys and the certificates of my server.String trustStorefile = "java.home"/lib/security/cacerts";String pwd = "changeit";String protocol ...

Https connection stopped working

2265 byte By Klosea at 2007-11-27 5:19:05
Hello Everyone,Please help me out.I created the a code to get a https connection (eg: https://www.google.com)The following code works fine in jre 1.4.2_11 but when I post the code into jre 1.6.0_01-b06, I get the Exception:java.security.AccessControlException: access denied ...

trust the server's certificate

411 byte By salim1981a at 2007-11-27 5:16:28
helloI have a certificate already generate by the server and I do not know its alias, how I can make:- to export the server certificate from the certs keystore.with keytool: keytool -export -keystore "java.home"/lib/security/cacerts -alias jamie -file server.cerbut I had the error: alias does ...

Does an SSLServerSocket cache the trusted certs?

1044 byte By MidnightJavaa at 2007-11-27 5:15:11
I implemented a TrustStoreManager for an SSLServerSocket so that checkClientTrusted() returns if the cert is acceptable. But through debugging code I see that once checkClientTrusted() returns normally, it doesn't get invoked when a subsequent connection is made to the same server socket.This ...

SOAP SSL handshake fails on JBoss

1967 byte By alfred.rsaa at 2007-11-27 5:12:45
Hi AllI have code that runs as a stand-alone application. It makes a SOAP call to a server over HTTPS. My problem is that the same code fails on JBoss and I can't figure out why. My code belowSystem.setProperty("javax.net.ssl.keyStore", ...

HTTPS on tomcat4.1 doesnt work when run as a service

249 byte By deepak@stara at 2007-11-27 5:10:19
Hi experts,I have configured HTTPS on my tomcat 4.1 web server.When I run tomcat as a console application it works fine, but when I run tomcat as a service it doesnt work.Please help me with this.ThanxDeepak