Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Java SDK 1.3 & 1.4 - HTTPS - R6.0.1
~Nita Desgeroburings 27.May.03 11:36 PM a Web browser
Domino Designer 6.0.1 Windows 2000


A post to update this thread on some problems I had, and their solutions.

I followed the instructions from Joseph, which was a great starting point. However, I kept getting errors on the domino console when I ran the java code.

I got 'untrusted server cert chain' errors.

To fix this, I had to add the certificate that i was using with the web server (IIS in my case)
to lotus/domino/jvm/lib/security/cacerts.

I used keytool to do this (which comes with the jdk).
keytool -import -alias <alias> -file mycert.cer -keystore cacerts

I was also getting java security exception errors, which I fixed by using the following code:

This java code works for both https and for http:

-- java code
URL myurl = new URL(MYURL);
BufferedReader in;

// we will use ssl (https) if we can
if (MYURL.startsWith("https") ){
com.sun.net.ssl.HttpsURLConnection myConnection = (com.sun.net.ssl.HttpsURLConnection myurl.openConnection();
in = new BufferedReader(new InputStreamReader(myConnection.getInputStream()));
} else { // otherwise, this is regular http
java.net.URLConnection myConnection = myurl.openConnection();
in = new BufferedReader(new InputStreamReader(myConnection.getInputStream()));
} // end else

String inputLine;
String txtReturn;
txtReturn = "";

while ((inputLine = in.readLine()) != null) {
txtReturn = txtReturn + inputLine;
}

-- Jo




Java SDK 1.3 & 1.4 - HTTPS - R6.0.1... (~Manny Minkroge... 8.Apr.03)
. . RE: Java SDK 1.3 & 1.4 - HTTPS - R6... (~Chloe Fezreplo... 9.Apr.03)
. . . . RE: Java SDK 1.3 & 1.4 - HTTPS - R6... (~Manny Minkroge... 10.Apr.03)
. . . . . . RE: Java SDK 1.3 & 1.4 - HTTPS - R6... (~Nita Desgerobu... 23.May.03)
. . . . . . . . RE: Java SDK 1.3 & 1.4 - HTTPS - R6... (~Nita Desgerobu... 27.May.03)
. . . . . . RE: Java SDK 1.3 & 1.4 - HTTPS - R6... (~Manny Minkroge... 1.Aug.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS