Handshake and HTTPS

898 byte By aalim1 at 2007-9-26 4:13:03
I have created my own SSLTunnelSocketFactory( Java World Tip 111) to take care of the proxy tunnelingproblem. I set this socketFactory in the HttpsURLConnection.setSSLSocketFatcory() after i create the url and open the connection. I am able to connect to certain sites (e.g. ...

Applet in Internet Explorer slows over SSL

413 byte By thenays at 2007-9-26 4:14:14
I have an applet running on an iPlanet server with a Verisign SSL cert. connecting to an Oracle Db. Without the cert everything runs great in both IE and Netscape. But when I turn on the SSL, IE slows down to a crawl. While Netscape still runs great with no visiable slow down. I do not get any ...

IMPORTANT : Sending a cert from the client

488 byte By glow007 at 2007-9-26 4:14:47
Hi,I have a solaris client which needs to communicate to NT machine. Both have Apache web servers with Jserv and JDk1.2.2 & JSSE 1.0.2There is a SolarisServlet and a NTServlet on respective m/c's..While I am connecting to NTServlet from the SolarisServlet, I need to give the client ...

Certificates

300 byte By georgefungkp at 2007-9-26 4:16:18
Q.1 The default truststore is stored in jre/lib/security/cacertsWe can set the path by System.setProperty ("javax.net.ssl.trustStore", "c:\\cacerts");How can i get the default path of truststore?Q. 2 How can i get trusted certificate from the system? ...

Check if https website is up

1723 byte By naca at 2007-9-26 4:16:44
I have been able to check if a http web site is up using the follwing code:try {HttpURLConnection.setFollowRedirects(true);HttpURLConnection con =(HttpURLConnection) new URL(URLName).openConnection();con.setRequestMethod("HEAD");if (con.getResponseCode() == HttpURLConnection.HTTP_OK)return ...

Use JCE Provider for JSSE

588 byte By MichaelSchlueter at 2007-9-26 4:17:40
As far as I know, it is not possible to use a jce provider for the cryptographic operations of the jsse reference implementation. The sun implementation uses the algorithms implemented in the jsse provider.There was a statement from sun, that this may change with the integration of jsse in the ...

JSSE in JDK 1.4 and java.nio.channels

233 byte By eduardoF at 2007-9-26 4:21:42
Anyone know if there is a way to use the non-blocking I/O in JDK1.4 with SSL sockets. I've looked and no way seems immediatly clear, but perhaps its done differently than for regular non-blocking sockets.Thanks.

Using JSSE

528 byte By karnataka at 2007-9-26 4:22:37
Hi,I need to write a Java client which needs to get HTML form data as input,convert it into XML, encrypt it and send it to a SSL aware Webserver,and decrypt the message after getting back the response.I am using TOMCAT as my webserver.I tried using Apache with mod-ssl,opensslbut couldn't ...

implement TLS (or SSL) communication

571 byte By matanS at 2007-9-26 4:23:56
Hi all,I wish to make a very Keep It Simple and Stupid client server application that will conduct secured communication between the client and the server.The natural approach would be to use TLS (which supercedes SSL, but is a little new yet) or SSL.I would like to get some reliable and simple ...

Problem in importing a cert and a pvt key

291 byte By glow007 at 2007-9-26 4:26:18
Hi,I have a certificate issued by a CA. And I have the certs private key.How should I import it into the keystore using keytool.I am able to import a certificate. But I do not know how to import the cert as well as the pvt key...Thanks in advance...

IOException: Broken pipe when contacting server using https

4455 byte By npatha at 2007-9-26 4:26:25
This program connects to server. Server requires client certificate. So, I am trying to send the certificate to the server.public class Test {public static void main(String a[]){ try {// Dynamically register the sun jsse providerjava.security.Security.addProvider(new ...

Newbie to JSSE && HttpsURLConnection

2463 byte By viiviiviivii at 2007-9-26 4:27:34
The included code throws this exception:com.dstc.security.util.ConfigException: property file ssl.properties not foundat com.dstc.security.util.Config.getProperties(Config.java:84)at com.dstc.security.ssl.SSLSocketFactory.initializeKeys(SSLSocketFactory.java:104)at ...

I am New to JSSE Plz Help

1044 byte By manojmony at 2007-9-26 4:28:57
Hi All, My task is to establish a secure connection for customers to communicate with ldap for Login.I really lack the idea how to implement ssl for a Form based SSL authentication.Kindly give some suggesssion. To test using jsse i have downloaded and installed the jar files in javahome ...

JSSE installation issues

669 byte By shankeyp at 2007-9-26 4:29:06
In http://java.sun.com/products/jsse/install.html it says or infers the var java-home as opposed to JAVA_HOME. My guess is this is just a small doc issue. Do you need to setup a java-home or just use JAVA_HOME?I am using Java 2 SDK, Standard Edition Version 1.3.1 which has no $JAVA_HOME/lib/ext ...

JSSE Gurus : Problem with SSLSocketClientWithClientAuth

4839 byte By npatha at 2007-9-26 4:30:26
Hi I am trying to run SSLSocketClientWithClientAuth.java which is present in samples directory.I am running asSSLSocketClientWithClientAuth myserver 443 login.jsp public class SSLSocketClientWithClientAuth {public static void main(String[] args) throws Exception {String host = null;int port = ...

Tomcat and SSL

1592 byte By micksta at 2007-9-26 4:30:31
Hi I'm getting an error when I try to run SSL with tomcat. Does anybody know how to solve this. THanks for your help in advance Starting tomcat. Check logs/tomcat.log for error messages2001-08-20 03:47:44 - ContextManager: Adding context Ctx( )2001-08-20 03:47:44 - ContextManager: Adding ...

using jsse ssl with jdk 1.3

148 byte By matanS at 2007-9-26 4:31:03
any sample code for jdk 1.3 ?jsse sample code is for jdk 1.2 and uses deprecated stuff so can't be used easily against jdk 1.3

SSLException: untrusted server cert chain

555 byte By jtyprowicz@DirecTV.com at 2007-9-26 4:40:58
I'm trying to verify my system is up. It's accessed only via HTTPS. I got everything working but get the dreaded untrusted cert error. I just want to send a quick message and get back a quick answer. Is there a way to circumvent the cert chain error? That is, I don't care if the site is not ...

troubleshoot ssl socket factory

1783 byte By matanS at 2007-9-26 4:42:39
I am converting a regular client-server sample socket program to ssl. But I don't have a clue how to find out what the problem is after the server socket creation fails.The code samples I use sort of assume no exceptions will be thrown and does not deal with indicating what problems occur. ...

SocketException: SSL implementation not available

232 byte By jtyprowicz@DirecTV.com at 2007-9-26 4:45:53
Anyone every see this error? I have the three JSSE1.0.2 jar files in my classpath. Anyone know what I'm missing to get this error? I also get the same error running the Sample SSLSocketClient that comes with JSSE1.0.2

https request hangs

911 byte By evo1 at 2007-9-26 4:48:14
I am using HttpsURLConnection and it works fine for verified certificates, such as verisign.com.i installed a 14 day trial verisign certificate on a machine for testing. i was originally getting the exceptionSSLException: untrusted server cert chain now i added the cert to jre\lib\security ...

Why is there an SSL package for URL?

192 byte By RousseauN at 2007-9-26 4:58:55
If i have an applet that calls servlet using URL.If i use an URL beginning with https, the transfert of data using this url is not automatically secure (SSL)?Nathan

Connection read exception: java.io.FileNotFoundException

491 byte By pisti1 at 2007-9-26 5:00:20
I am posting a http request to my webserver (Win2000-IIS5.0 and ASP) and sometimes I get back the following exception:Connection read exception: java.io.FileNotFoundExceptionSeems like it's not finding the asp file in that location.If I try the request again it works. The client is a Java2 ...

Important : Client Certificate reqd in the program

710 byte By npatha at 2007-9-26 5:09:54
Hi,I have set up my Apache/Jserv for https.And the client needs to present its cert if it wants to communicate with the server.The handshake is happening properly. The ssl_engine_log shows that client has been authenticated.But I want to get the certificate of the client in my jsp.I am doing ...

RMI-activation over ssl

673 byte By AmidD at 2007-9-26 5:10:06
Hi,A. Does anyone know a good example for activation over ssl?B. This is what I did:I use the constructor of the activatable object as follows:super(id,0, new RMISocketFactoryImp("ssl"), new RMISocketFactoryImp("ssl") )RMISocketFactoryImp is a class I wrote that extends RMISocketFactory. This ...

Https&proxy answers

482 byte By 6106366 at 2007-9-26 5:15:29
Hi to everybody,I'm trying to connect to an https url via proxy/firewall;I'm using the SSLSocketClientWithTunneling.java example with some new line added just for the authentication.It seems that a connection is established but i get back from server this message:HTTP/1.1 400 Bad ...

SSL server for win apache...

95 byte By FelipeGaucho at 2007-9-26 5:20:56
Is there a service (or software) which able me to set the SSL for my Win apache ?

HTTPSURLConnection/JSSE

5993 byte By jingeno at 2007-9-26 5:25:44
Hi...I am having some difficulty making a secure connection to send/receive streams. In order to connect to non-secure sites, I use the following code:// Initialize URL variablesURL url = null;HttpURLConnection urlConnection = null;// Get handle to URL and its connectionurl = new ...

Multiple SSL requests creating problem

1176 byte By istikhar99 at 2007-9-26 5:33:28
I am developing a java servlet as a gateway between clients and SSL enabled webservers.I am using JSSE version for connecting to different SSL enabled serversMy Requirement is to connect to mulltiple SSL enabled servers through java program .Actually after successfully log on to first site (any ...

For those who are having PERFORMANCE problems with JSSE

1154 byte By ctmoore at 2007-9-26 5:36:14
I have figured out one of the main causes. If you use the default implementation of the SecureRandom object (you use this if you don't explicitly declare and seed one in your code), the seeding of the object takes an excessive amount of time. The problem is in SeedGenerator, it calls ...

Do not want to send local requests through proxy?

324 byte By dexterf at 2007-9-26 5:36:51
I am trying to connect to a site through a Proxy server using Https. This works fine. I would like to know how to prevent certain requests from going through the proxy. More specifically, if I make a request to localhost or some predetermined url, i do not want that request to go through a ...

Setting Up a Server Certificate

481 byte By wloucks at 2007-9-26 5:44:22
In the "J2EE(TM) Developer's Guide Security" it says, unless a server certificate is installed, the HTTPS service of the J2EE server will not run.My intent, is to get a certificate as cheap as possiblefor learning purpose (non-commercial/individual). Doesanyone know where the cheapest ones ...

Bug Report: JSSE 1.0.2 & iPlanet-Web-Proxy-Server/3.6

501 byte By francoismcneil at 2007-9-26 6:02:00
When tunneling through iPlanet-Web-Proxy-Server/3.6 we get a "Socket Closed" exception during the handshake (right after overlaying the tunnel). I got this problem with HP-UX. My browser works fine with that proxy so the problem isn't the proxy. And my code works fine with every other proxies. ...

Tunneling Problem using HttpsUrlConnection

2484 byte By Prabhakaran_R at 2007-9-26 6:06:31
Hi,I had gone through forums regarding this topic and still i am facing the same problem using the HttpsUrlConnection. We are working behind a proxy so we have to make a proxy authorization if we want to connect to a server in the internet.But in case of HttpUrlConnection, everything worksfine. ...

LDAP and SSL

488 byte By bartic-s at 2007-9-26 6:12:08
I am setting up a little test-program, which connects to a LDAP-server through a SSL-connection. I added the certificate to the trusted certificates and I can make a https connection to the same server (same certificate), I still get the following Exception:javax.naming.CommunicationException: ...

JSSE 1.0.2 - no SSL Server Sockets ?

1072 byte By nealii at 2007-9-26 6:13:34
I am not having success getting JSSE 1.0.2 installed.I used Visual Cafe to create a simple app with thesuggested test program from the JSSE 1.0.2 API User's Guide as follows:import java.net.*;import javax.net.ssl.*;public class JSSE_install_check {public static void main(String[] args) throws ...

How to do a POST on HttpsTunneling(referring javawldtip111)

1651 byte By Prabhakaran_R at 2007-9-26 6:19:24
I have used jsse for https (thur SSL) communication.It suits with our requiremets and we have done with the work and tested successfully.Requiremens ARE,1.Writing some Message to the webserver(IIS),and ASP page which resides on IIS will receive the Message and does the work based onthe ...

Sending a certificate form the client to the server... how to ?

100 byte By FelipeGaucho at 2007-9-26 6:31:29
how can I send a certificate from the client to the server trough a Java code ?

How to import a CA certificate

797 byte By ursi at 2007-9-26 6:31:32
I did implement some software using the Java SSL extension. It works when installing each certificate as trusted.Now I want to use the existing internal CA infrastructure. I did a certification request, got the answer and tried to import it into my keystore.I got the error keytool error: Failed ...

Getting FileNotFound Exception while using https url connection

711 byte By vrkiruba at 2007-9-26 6:38:40
Hi I am facing a serious problem in running the code. I am using JSSE in my code and through this application I am hitting a URL which is also using HTTPS and that code is also using JSSE in servlets.Now when I use the code I get a FileNotFoundException which says that the particular servlet is ...

Signature not available / javax.net.ssl.SSLException: untrusted server cert

1068 byte By O66183 at 2007-9-26 6:39:12
Hi, I'm a newbie concerning jsse and it might be that this problem was already solved within that forum but I didn't find the solution...sorry. I'm getting the message untrusted server cert just trying to do some simple code like the following: ...

SSLHandshakeException: Signature does not match

144 byte By bartic-s at 2007-9-26 6:41:45
I am getting this error when trying to connect toa ldap server through ssl. Does anybody have an idea what is wrong?

Certificates conversion.. from PKCS12 to x.509 how to ?

83 byte By FelipeGaucho at 2007-9-26 6:44:01
Can I transform a received pkcs12 certificate to a x.509 one ?

JDK1.2.2 and untrusted server chain and HELP

12568 byte By O66183 at 2007-9-26 6:46:11
Hi, I'm using JDK1.2.2 and I've downloaded and installed JSSE1.02. I have also installed the server cert in my own truststore. The server to whom I want to connect sends two certificates. One is valid and this is the one I need and I have and one that is timed out and of no importance for ...

untrusted server cert chain & does not recognize the certificate authority

1079 byte By psala at 2007-9-26 6:49:43
I have java code that makes an ssl connection to an HTTPS server.The code workes fine when I connect to a server that has a certificate that was issued by a recognizable authority.But when I try to connect to our test HTTPS server which has acertificate that was created by ourselves for debug, ...

HTTPS tunneling and V3 certificates

95426 byte By lsbueno at 2007-9-26 6:50:53
I modified the source code from http://www.javaworld.com/javaworld/javatips/jw-javatip111.html? to use proxy authentication and it's working fine for some websites but not for others... When I use it with a website that has a V1 certificate (e.g. www.verisign.com) it works fine but it doesn't ...

jsse exception - No available certificate

4657 byte By bluesunday at 2007-9-26 6:52:24
I really need help.When I use jsseJava, I meet an Exception "No available certificate corresponds to the SSL cipher suites which are enabled"The Exception appear when "SSLSocket clientSocket=(SSLSocket)sslServerSocket.accept();"Environment:os:windows2000 serverJDK/JVM: version 1.3.0.2javaSSL: ...

Which keys are used in Client/Server Authentication?

698 byte By nemov at 2007-9-26 7:00:23
Hi.I am trying to understand how SunX509 algorithm works in a TLS context. When Server or Client authentication is done, which keys of the keystore are used?I mean, when you set up your KeyStore instance, it is loaded a whole KeyStore from the filesystem, which has a lot of keys to be used. Are ...

HTTPS problem

2121 byte By m_ansram at 2007-9-26 7:06:11
Friends,I am using the JSSE 1.0.2 implementation for sending a HTTPS request. I have installed it as an extension properly.(on Java2, JDK 1.2.2)I am getting the following exception when trying to do a url.openConnection(). Exception in thread "main" java.net.SocketException: SSL implementation ...

KeyTool Documentation

212 byte By jmathers at 2007-9-26 7:11:27
Does anyone know where I could find comprehensive documentation on the keytool program? I've looked al over Sun's site with no luck. A third party book would be fine.tia,jeff mathers