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:
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