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 ...
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 ...
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 ...
<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>
Friends, I have managed to establish a one -way https connection between the client and the tomcat-server by keeping the client-Authentication=false ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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>
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 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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.
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 ...
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. ...
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 ...
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
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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", ...
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