Client settings

1332 byte By java06_foruma at 2007-10-2 17:54:18
Hi ExpertsI am new to security topics.My requirement is that I have to connect the server using https connection. I got the certificate(.cer) and I copied to my local drive. Following is the client code in my java program. Please help me how to use the certificate to connect to the ...

Help required "Forming Packets of data "

85 byte By Naseera at 2007-10-2 17:58:28
How can i form Packets from data .is there any builtin java class or function.

how to extract client certificate

2246 byte By sachin_ya at 2007-10-2 18:02:59
hi all,i am working on an application where we have to extract a certificate installed in the user browsers private certificate area. for simulation i have created a keystore(pkcs12) and installed the certificate in browser. now i have a JSP running on SSL enable oracle 10g AS, where i am ...

socket connection in java to copy a fle from one system to another

66 byte By EnterpriseJavaLearnera at 2007-10-2 18:09:34
Can any onehelp me . give me java code as soon as possible.

SOAP: java.net.SocketTimeoutException: Read timed out

396 byte By deepa_ramania at 2007-10-2 18:27:19
Hi all, I can also find the same exception in my webservice which is developed using Apache Axis toolkit by WSDL2JAVA approach. In this case, the stub classes are generated from the WSDL file. So, I wonder how to change the timeout values in the stub class as the classes are dynamically ...

SSLHandShakingException :Certificate expired

1591 byte By Bunteea at 2007-10-2 18:34:12
HitechiesI have and SDK of a third party reporting tool Cognos, which is used to coonect to that server. for accessing the server I had to first logon to the server and query it with some string, when I used HTTP (non-secure) then it is working fine, But when I used HTTPS to connect to it. Then ...

about SSL(HTTPS) through JSSE

1327 byte By Hiral.Shaha at 2007-10-2 18:42:19
Can any one suggest me something, about1) How to generate keystore/truststore?2) Where to put this keystore/truststore?3) How to make use of this keystore?4) How to make my webpage/s in web application to run on HTTPS(except Login page)? 5) I have created one program for RSA/BlowFish Algorithm, ...

support for https// protocol in websphere

225 byte By p.vamsi_krishnaa at 2007-10-2 18:48:23
Hi iam using websphere 5.1.2 i redirect my jsp to https//localhost:9080/sam.jsp but its not display .Can u help me how to configure websphere for support of Https protocolThanx

Is there a way to make a self-signed client certificate with keytool...

143 byte By sabina_st81a at 2007-10-2 19:06:46
Is there a way to make a self-signed client certificate with keytoolthat will install successfully into the personal store in IE?

Cannot connect to an https server

3510 byte By sagithaa at 2007-10-2 19:19:42
Hi,I searched far and wide in the forum for a resolution to my problem but did not find any solution. Hence posting the problem here. Please help. I need to make a call to an https server using a POST request from a SunOS 5.8 machine. Some parameters are to be passed to it. The server would ...

Java Code-Unsecure to Secure - Help Required !!!

2507 byte By sryrama at 2007-10-2 19:37:29
Hi FriendsI have this Java file (phoneclient.java) in which the code is in unsecure format.Can someone help by modifying it to Secure code with documentation. Thank you for your time with this import java.io.*;import java.net.*;import java.text.*;import java.util.*;public class PhoneClient ...

Is it possible to turn off encryption in SSL connections

483 byte By virtuallyreala at 2007-10-2 19:42:56
hi all,Although the question seems quite weird, but i want to know whether if it is possible to disable SSL encryption of data during SSL connections. I mean once the SSL connection has been established using Certificate authentication, the data exchanges thereafter should not be encrypted. I ...

I don't understand anything in HTTPS...please help!

1353 byte By rflaira at 2007-10-2 19:47:07
Hi,I want to connect to the servlet through HTTPS (from an applet).I wrote these in my code and it works:...Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());Properties properties = System.getProperties();String handlers = System.getProperty("java.protocol.handler.pkgs");if ...

Applet receiving DatagramPackets...

239 byte By caga_na_sakinhaa at 2007-10-2 19:47:13
I everyone...my problem is very simple to explain:I need my applet to receive datagram packets from a rtsp server! Is there any problem doing this or is just my source code that's wrong?Thanks,Andr?Costa

Connecting to a Secured server : bad_record_mac

3218 byte By Balduriena at 2007-10-2 19:56:25
Hi,I'm in trouble while trying to connect to a HTTPS server via Java (jdk1.5), which use certificate. When using Firefox, or Explorer, it ask me if I accept the certificate, and there is no problems there.But I have to test the webserver using jMeter, and each times I try to access the server, ...

SSL reading problem in server-side

3179 byte By serkandemira at 2007-10-2 20:01:05
Hi guys,I have a problem in my server implemetation with SSL Server Socket. I have created a server socket with a specfic port and bind address. Whenever a client connecfed, i grap its inputstream and starts to read as bytes. There is no problem to open server socket and certifacate ...

simple SL connection issue

425 byte By shaba_dila at 2007-10-2 20:13:04
I could connect to a HTTPS Resource successfully with java. But it creates Exception when i eliminate this line from my code, that is, System.setProperty("javax.net.ssl.trustStore",keyStoreLocation);Actually my HTTPS location is trusted, and i dont want to provide keystore location like this. ...

InitialDirContext Throwing ServiceUnavailableException socket closed

5357 byte By IAMNEILa at 2007-10-2 20:20:46
Any assistance is appreciated.Problems occurring when multiple DirContext instances are created. Attempting to make a SSL connection to Active Directory on port 636. A single successful context can be established in the below code. However, a second instantiation of InitialDirContext(env) ...

How to locate and configure SSL cipher suites

510 byte By virtuallyreala at 2007-10-2 20:25:37
hi all,i wanted to knw how Ciphersuites that are used in SSL Connections are picked up by the JVM or whoever is responsible for establishing the connection at lower level. I mean there are methods in SSLSocketFactory, HttpsURLConnection named getEnabledCipherSuites(). I was just wondering where ...

SSLSession buffer sizes getting bigger?

185 byte By colinHUa at 2007-10-2 20:33:56
I can only use getApplicationBufferSize() and getPacketBufferSize() inthe SSLSession. But how can I increase the buffer sizes? Can the sizes be specified somewhere?

Uploading images using SSL

243 byte By avodena at 2007-10-2 20:35:11
Im uploading images from client to a server using SSL. Question #1: do those images send encrypted?Question #2: when Im viewing HTTPS page do data that sent from server to browser also encrypted?Thanks.Andrei

Several SSL Connections in one Application

1854 byte By MichaelBullaa at 2007-10-2 20:41:51
Hi, Im triing to wirte an application that connects to several SSL- servers. When Im writing an application with one connection I set the systemproperties javax.net.ssl.keyStore and password and use the SSLSocketFactory.getDefault().But now, this doesnt work, heres my ...

Import server certificate (not https)

742 byte By alvakoldo10a at 2007-10-2 21:17:24
Hello i've been long looking for the way to implement same mechanism thatworks in https connections but in a swing app. This is I already have client andserver both authenticated to each other to set up an SSL communication....but this works as long as i use externally keytool[/] to exchange ...

SSL handshake failed: X509CertChainIncompleteErr

1915 byte By kashif10a at 2007-10-2 21:20:45
--Hi,I am getting error when trying to connect to https url.I import certificates using IE & than import it in cacert file using keytool. I am using Jdev10, my code is simply a emiter code produce by jdeveloper using the wsdl file. I simply wrote a single file & try to connect to https ...

java.security.UnrecoverableKeyException: Get Key failed: / by zero

1671 byte By TimWarda at 2007-10-2 21:35:10
Anyone know what this means? - "/ by zero" is not the world's most helpful error message:java.security.UnrecoverableKeyException: Get Key failed: / by zeroat com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:268)at java.security.KeyStore.getKey(KeyStore.java:731)at ...

SunPKCS11

497 byte By TimWarda at 2007-10-2 21:35:46
Is there any documentation of this anywhere? - all I can find is:String configName = "/opt/bar/cfg/pkcs11.cfg";Provider p = new sun.security.pkcs11.SunPKCS11(configName);which is fine if the configuration file is a separate disk file but suffers from the usual problem if the configuration ...

SSL muthual authentication

1770 byte By waczacka at 2007-10-2 21:36:22
Hi all!I'm writing a web service client application using JWSDP. The SOAP message is sent via HTTPS channel. In SSL handshake, the muthual authentication is required. In order to solve this I attached to my client:System.setProperty( "javax.net.ssl.keyStore", "key.pfx" );System.setProperty( ...

creating keystore using existing information

319 byte By miryavera at 2007-10-2 21:44:38
i have two files namely key.pem holding the private key and ca.pem holding certification chain and root certificate..how do i create keystore using these two files so that i can connect to existing server.so i need to create two or single keystore.please do tell me the abstract steps to create ...

javax.net.ssl.SSLHandshakeException: Remote host closed connection during h

5131 byte By write2jamesbonda at 2007-10-2 21:48:26
Hi All,I'm facing this error while trying to access to invoking servlet from a applet through HTTPS protocol.But I works fine when i uses HTTP protocol.Error message from Java console is given below.javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshakeat ...

JSSE books/tutorial links

754 byte By rgiria at 2007-10-2 21:59:10
Can anyone point to good books or online tutorials on JSSE?We have code that does HttpURLConnection, but before doing it, it sets some System.setProperties javax.net.ssl.Keystore, storepassword etc,I would like to know more about why do we do things this way.1) why these steps are necessary?2) ...

System.setProperty("javax.net.ssl.keyStorePassword", _storePwd) question

1922 byte By rgiria at 2007-10-2 22:00:04
Why the system properties are not being set programmatically?When I say does not take affect it happens only when we do things in a certain order.For example we need to connect to URL_CACERTS and URL_KS. URL_KS connection needs the keystore properties. For URL_CACERTS we just imported their ...

How to suppress reverse DNS lookup?

1486 byte By TimWarda at 2007-10-2 22:02:20
When a client SSLSocket connects to the server, then after the SYN, SYN/ACK, ACK handshake the next thing you see on the wire is an attempt to resolve the domain name of the server (as detailed in several previous threads).The servers I'm wanting to talk to don't have DNS names, and don't ...

java.net.SocketException: Default SSL context init failed: / by zero

5221 byte By Galadriela at 2007-10-2 22:05:35
Hi all!First of all, I am a newbie in webservices. :-)I have a remote webservice to acess from java and get a message. I do not need to send any parameters, only get a String.I have de client certificate ( .pfx).I got the BouncyClaster lib.PLEASE, take a llok ate the code and the exception ...

Bind Local Port For HttpsUrlConnection

629 byte By masijadea at 2007-10-2 22:07:16
We have a clustered Server with a virtual IP address and each machine has, of course, a physical ip address. There is also a proxy/firewall that only allows the virtual ip address to make connections. When using HttpsUrlConnection there is no way to bind to the virtual IP address, and so we are ...

trying to read client certificate, but always return null

13563 byte By imin83a at 2007-10-2 22:14:39
[nobr]hii used a code i found from another website, to read client's digital certificate:here's the code:import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;import java.security.cert.*;public class SecurityAttribs extends HttpServlet{static final String ...

KeyStore Problem

551 byte By lvguangchuana at 2007-10-2 22:24:05
Hi,FriendsI want to dynmatically to get keystore.however, I always get an exception says:java.io.IOException: DER input, Integer tag errorwhat my certificate file is: export from web browser tool->option->Certificates -> other People ->Exportand select DER encoded binary X.509.Here ...

No trusted certificate found or remote host closed connection at handshake

3511 byte By miryavera at 2007-10-2 22:27:43
hello,i am trying to write the java code to connect to existing production server over SSL using the keys and certificates from server which i already have...Following are steps which i have already done:-1.i have two files key.der (private key) and ca.der(containing chain of certificates along ...

Cannot find jsse jar files (jnet.jar, jcert.jar, jsse.jar) under jdk1.4

357 byte By j_raya at 2007-10-2 22:35:01
I'm working on getting a https conncetion for the pages which run on tomcat server using javav1.4. And I'm trying to find this JSSE package under java to copy the jar files (jnet.jar, jcert.jar, jsse.jar) into Java_Home/jre/lib/exe. But I couldnt find these files anywhere.Where do I need to ...

Trying to write a SSL Proxy, but having weird problems

10514 byte By yongqiana at 2007-10-2 22:40:29
I am currently trying to write a SSL proxy and it works for most sites but it dosn't work on a few. This demostrates the error:import java.io.*;import java.net.*;import javax.net.ssl.*;import java.security.*;import java.util.*;public class SSLInterceptor{static SSLServerSocketFactory ...

HttpsURLConnection to WebPage

537 byte By kudia at 2007-10-2 22:45:28
Hi, I just want a simple connection to a secure web page. When I access https://... by a browser I need to enter my username and the password. So I hoped that I can do the same with HttpURLConnection, but I did not find any information how it can be done very simple. I expected something like ...

SSL newbie

271 byte By jagchandraa at 2007-10-2 22:51:43
Hi guys,I'm newbie to JSSE , i want to use SSL communication between a normal client and server. Pls direct me to proper links or example implementation.I'm familiar with other crypto operations , but never used SSL. Pls update meRegards Jag

How to use client certificate authorization properly?

1145 byte By yankopa at 2007-10-2 22:53:21
Well, I have a private key generated by openssl and the certificate signed by our own CA. If I import them into IE or Mozilla Web browsers I can connect our https server requiring the client certificate authorization so the certificate validity or the https server configuration do not seem to ...

cacerts--can it update itself?

650 byte By ljnelsona at 2007-10-2 22:53:39
I know this sounds like a boneheaded question, but I'll ask it anyway.Is there any scenario under which a cacerts database could appear to update itself? I'm thinking via Java Update, or some Java plugin magic, or via some arcane aspect of the SSL handshake process, or....I have two machines. ...

SSLSocket on client & NIO w/ SSLEngine on server

562 byte By bparousisa at 2007-10-2 22:53:56
Hi, I have a question about NIO & SSL...Does it make sense to use SSLSocket on the client-side to connect to a server, which uses NIO w/ SSLEngine?In my current code the server side is set up to be non-blocking. The handshaking part on the client side seems to work fine with the server's ...

SSLException : Unrecognized SSL message, plaintext connection?

5188 byte By Maga at 2007-10-2 22:55:10
hi !!i have a problem, i try to implement an HTTP/HTTPS proxy.At the moment the part HTTP of the Proxy works but i have, with the part HTTPS of my Proxy, an SSLException that is "Unrecognized SSL message, plaintext connection?"i don't know how i can't resolve this .this exception is throwed ...

Enabled protocols question

1705 byte By mdedianaa at 2007-10-2 23:00:06
Running the code below I get as a return from getEnabledProtocols SSLv2Hello, SSLv3 and TLSv1.Since I have set TLSv1 in the context, shouldn磘 it return only this protocol? I understand it is possible to send TLS Client Hello messages wrapped in SSLv2, but I don磘 want it to happen.Are there any ...

com.sun.net.ssl.internal.www.protocol

660 byte By leostar_10a at 2007-10-2 23:05:18
Hi,Iam trying to write a simple program which establishes a HTTPS connections. I was reading an article about it and it said to use:System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");But if I comment out the above, it still works fine. Also I checked all ...

export client certificate from IE to .cer file

1414 byte By imin83a at 2007-10-2 23:15:42
[nobr]hii used a jsp page to read client' certificate. here's an excerpt of my code:X509Certificate[] certChain = (X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate");if (certChain != null) {X509Certificate cert = certChain[0];String dn = ...

Using purchased certificate with sjsas pe

1372 byte By SoftServe25a at 2007-10-2 23:16:58
Hello.I am using the sun java system application server platform edition 8.1. Since I need to implement SSL for the web services, a cert has been purchased from a CA. On installation the appserver creates a server certificate called 's1as', which I am using at the moment for SSL.The J2EE 1.4 ...

Export restriction: this JSSE implementation is non-pluggable.

279 byte By guruvinayakaa at 2007-10-2 23:33:47
Hi Guys,Anyone know what the fix is for this. We have 1.4.2_08 with WAS 6.02 on solaris. I have copied the latest unrestricted policy jar files from sun to the lib/security folders but still getting this issue... Any help is appreciated.Thanks.