Title: RE: Apache SOAP does not recognbize https protocol?
Thanks. This helped a lot. It is not using my keystore:
 
Deploying the messaging service...
keyStore is :
keyStore type is : jks
init keystore
init keymanager of type SunX509
trustStore is: /usr/java/j2sdk1.4.0/jre/lib/security/cacerts
trustStore type is : jks
init truststore
adding as trusted cert: [
[
  Version: V3
  Subject: [EMAIL PROTECTED], CN=Thawte Personal Freemail CA, OU=Certification Services Division, O=Thawte C
onsulting, L=Cape Town, ST=Western Cape, C=ZA
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
 
  Key:  com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@d009b4
  Validity: [From: Sun Dec 31 16:00:00 PST 1995,
               To: Thu Dec 31 15:59:59 PST 2020]
  Issuer: [EMAIL PROTECTED], CN=Thawte Personal Freemail CA, OU=Certification Services Division, O=Thawte Co
nsulting, L=Cape Town, ST=Western Cape, C=ZA
  SerialNumber: [  0  ]
 
Certificate Extensions: 1
[1]: ObjectId: 2.5.29.19 Criticality=true
BasicConstraints:[
CA:true
PathLen:2147483647
]
 
 
 
 
 
But in the source, I have specified the keystores, why doesn't recognize it?
 
    ///////////////////////////////////////////////////////////////
    // HTTPS - SSL
    System.setProperty("javax.net.ssl.trustStore", "/home/jyue/soap/server.keystore");
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
 
    // Add SSL Provider
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
 
    System.setProperty("javax.net.ssl.keyStorePassword", "infonoxsoap");
    System.setProperty("javax.net.ssl.keyStore", "/home/jyue/soap/security/client.keystore");
    System.setProperty("javax.net.ssl.trustStorePassword", "infonoxsoap");
 
    // Next line not necessary
    System.setProperty("javax.net.ssl.keyStoreType", "jks");
 
 
-----Original Message-----
From: Joe Pruitt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 10:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache SOAP does not recognbize https protocol?

Try adding the following javax debug flag to your runtime args

        -Djavax.net.debug=ssl

This will dump a bunch of ssl diagnostics.  More than likely you haven't trusted the server cert locally.  If so, you need to download and install the server certificate in the local keystore with the jdk's keytool command.

        keytool -import -alias some_alias_name -file path_to_server_cert.crt

-Joe

-----Original Message-----
From: Jonathan Yue [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 6:01 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache SOAP does not recognbize https protocol?


I downloaded jdk1.4 and the https error msg is gone, but still there are exceptions from client and server. Please help more.

(again, tomcat/ssl/ is working fine from http and https browser requests).


client:
===========================================
Deploying the messaging service...
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: null;
targetException=java.lang.IllegalArgumentException: Error opening socket: null]
        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
va:324)
        at org.apache.soap.rpc.Call.invoke(Call.java:205)
        at org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:129)
        at org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:142)
        at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
30)


server:
=============================================
2002-05-23 17:53:30 - ContextManager: Error reading request, ignored - java.lang.NullPointerException
        at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1133)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:765)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:536)



Thanks,

Regards
Jonathan


-----Original Message-----
From: Agrawal, Anuj (Anuj)** CTR ** [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:15 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache SOAP does not recognbize https protocol?


Yeah - you need to include the jsse.jar, jcert.jar and jnet.jar from Sun. The exception you're getting is cause the JDK doesn't contain support for URLs starting with https.. unknown protocol.. those 3 jar files are required to do that.

> Has anyone tried https in the rpcrouter and messagerouter URL? If I
> put https instead of http, the sample program gives me exceptions.
> (I have apache/mod_ssl, tomcat SSL enabled and
> https://localhost:4422/soap/admin/ works fine ).

Reply via email to