Java https for SOAP in domino 6

Hi everyone,

this topic has already been discussed a while, but none of the solutions presented worked for me.

I want to open an https connection for SOAP messages from my Domino 6.5 Server and am getting a MalformedURLException, the relevant part of the Stack Trace is:

java.net.MalformedURLException: unknown protocol: https

at java.net.URL.(URL.java:508)

at java.net.URL.(URL.java:404)

at java.net.URL.(URL.java:358)

my code up to this point looks like this:

System.setProperty(“javax.net.ssl.trustStore”,“C:\Programme\jakarta-tomcat-4.1\Keystore\server.keystore”);

System.setProperty(“java.protocol.handler.pkgs”,“com.sun.net.ssl.internal.www.protocol”);

this.url = new URL(serviceURL);<<–this is the line I get the error in

I added the provider in the java.security file in the folder [domino]\jvm\lib\security in the following way:

security.provider.3=com.sun.net.ssl.internal.ssl.Provider

I also copied the three jsse files to the jvm\lib\ext folder and added the following line to java.policy:

permission java.util.PropertyPermission “java.protocol.handler.pkgs”, “write”;

I still get the MalformedURLException.

If anyone knows how to solve this problem, he’d make me a happy man

Subject: java https for SOAP in domino 6

But Domino 6 only supports JVM 1.3.1 so you can’t use JSSE.

Only JVM 1.4.0 and above will support JSSE.

Secondly, what sets serviceURL? It should be URLencoded.

Regards

Rolf Pfotenhauer

Subject: RE: java https for SOAP in domino 6

You can download the jsse package to use with JVM 1.3

Copy the jar files to

Lotus Domino\jvm\lib\ext

Modify 2 files:

Additional configuration for SSL support

  1. Modify the java.security document (in Lotus\Domino\jvm\lib\security) and add a security provider : com.sun.net.ssl.internal.ssl.Provider.

Example :

security.provider.1=sun.security.provider.Sun

security.provider.2=com.ibm.crypto.provider.IBMJCA

security.provider.3=com.sun.net.ssl.internal.ssl.Provider --------Add this line to existing list

  1. Modify the java.policy document (in Lotus\Domino\jvm\lib\security) and add a permission :

….existing list…add this line

permission java.util.PropertyPermission “java.protocol.handler.pkgs”, “write”;


Do the same steps on Client used for development


It works well.