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 ...
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.
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 ...
Can any onehelp me . give me java code as soon as possible.
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 ...
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 ...
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, ...
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 keytoolthat will install successfully into the personal store in IE?
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 ...
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 ...
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 ...
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 ...
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
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, ...
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 ...
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. ...
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) ...
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 ...
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?
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
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 ...
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 ...
--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 ...
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 ...
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 ...
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( ...
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 ...
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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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 ...
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.