Sun JSSE and connection to Domino Server

Sun JSSE and connection to Domino Server

Post by Je VUIBER » Sat, 11 Sep 2004 18:54:51


i.

A servlet on WebSphere Application Server has to connect a domino server
(R5) in SSL mode.

All servlets are "compiled" using Sun JDK 1.4.2.

But it seems that there is a problem during the handshake.

We tried the same program but compiled with the IBM JDK and it works.

Can someone tell me why ?

Sincerely.

Jerome

PS : Here is the sample code we use to test the connection.

import java.io.*;
import java.net.*;
import javax.net.ssl.*;
import java.security.KeyStore;
import java.security.Security;
import java.security.cert.*;
import java.util.Properties;

public class Connexion_ibmJDK_SSLSocket
{
public static void main(String args[])
{
String host= "test.dev.fr";
int port= 443;
String path= "/dominobasepath.NSF";

String keyStore= "BureauIntranetKeys.jks";
String key= "bureauintranet";
String pwd= "2003bureau";

com.ibm.net.ssl.SSLContext ctx= null;
File keyStoreFile= null;
KeyStore ks= null;
com.ibm.net.ssl.KeyManagerFactory kmf= null;
com.ibm.net.ssl.TrustManagerFactory tmf= null;
SSLSocketFactory factory= null;
SSLSocket socket= null;
BufferedReader reader= null;
BufferedWriter writer= null;
Properties properties= null;
String handlers= null;
String line= null;

try
{
// Propri JAVA relatives la surit-------------------------
//Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Security.addProvider(new com.ibm.jsse.IBMJSSEProvider());
properties= System.getProperties();
properties.put("javax.net.debug", "all");
properties.put("javax.security.debug", "all");
handlers= System.getProperty("java.protocol.handler.pkgs");
if (handlers == null)
{
properties.put( "java.protocol.handler.pkgs"
, "com.ibm.net.ssl.internal.www.protocol" );
}
else
{
properties.put( "java.protocol.handler.pkgs"
,
"com.ibm.net.ssl.internal.www.protocol|".concat(handlers) );
}

// Magasin contenant les autorit de certification ----------------
properties.put("javax.net.ssl.trustStore", "BureauIntranetCACerts.jks");
properties.put("javax.net.ssl.trustStorePassword", "2003bureau");

System.setProperties(properties);

// Initialisation du contexte SSL avec le certificat client et le --
// protocole (valeurs possibles : SSL, SSLv2, SSLv3, TLS,
TLSv1) ---import java.io.*;
import java.net.*;
import javax.net.ssl.*;
import java.security.KeyStore;
import java.security.Security;
import java.security.cert.*;
import java.util.Properties;

public class Connexion_ibmJDK_SSLSocket
{
public static void main(String args[])
{
// String host= "annuaire.eurocis.fr";
String host= "sdev-test.dev.eurocis.fr";
int port= 443;
// String path= "/";
// String path= "/names.nsf";
String path= "/opus/OPUSRECHERCHE.NSF";

String keyStore= "BureauIntranetKeys.jks";
String key= "bureauintranet";
String pwd= "2003bureau";

com.ibm.net.ssl.SSLContext ctx= null;
File keyStor
 
 
 

1. Moving Lotus 6.5 users from one Domino server to another Domino server on different domains

2. Refurbished Sun Enterprise Servers from Sun Microsystems and Sun Server Hard Drives

EOL Hard drives has quality Refurbished Sun Enterprise Servers
available on this store.Please give us a call if you want our
technical sales expert to assist you to find the perfect refurbished
Sun equipment that will meet your computing and networking hardware
requirement.

Eolharddrives.com has vast collection of sun server hard drives for
different sun server. We have blade hard drives, fire hard drives,
netra hard drives and many more for your server. We also provide sun
enterprise hard drives and java workstation hard drive at discount
price.

Sun Servers and Internet infrastructure hardware. We provide our
customers with the highest quality refurbished products paired with an
unmatched host of professional services. Our world-class customer
service is pivotal in the way we do business by putting our clients needs first; we focus on the end usersdesired result and work to
make that happen in the most cost efficient manner.
For more info:- http://www.yqcomputer.com/

3. Lotus Domino 6.5.1 on a SUN Sparc Server

4. SOS trying to make work sun JSSE within IBM jdk.

5. [outlook 2003][Connector for Domino] sent mail folder & Domino server

6. Domino Outlook Conenctor not repsonding after Domino Server move

7. Domino Server connection problems ... NotesSQL

8. SN#17055 Sun + Sun Promotion Offer 10% Savings on Sun Servers and Storage

9. SN#17219 Sun + Sun Promotion Offer 10% Savings on Sun Servers and Storage

10. SN#17265 Sun Introduces System Packs for Many Sun Fire, Sun Blade Servers

11. SN#18756 Sun xVM Infrastructure Previewed: Sun xVM Server and Sun xVM Ops Center

12. SN#20476 Sun Adds Two New Servers: Sun Fire X2250 and Sun Fire X4250