Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When we upgraded our Domino development server from 8.5.3 to 9 the HTTPS connections from Java code to sites having GoDaddy certificate stopped working. Connections to servers having DigiCert certificate work fine. This happens in both agents and XPages.

Here is an XPage sample code:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="">

I've also tried with UrlConnection. Here is the exception: 3659

... 3659

I imported the GoDaddy certificates to domino_path\jvm\lib\security\cacerts keystore according to these instructions:

But that did not help and I also imported gd-class2-root.crt with no results. I also tried renaming the cacerts file and copying the one from 8.5.3 server but it did not help either. I've been booting HTTP and Domino server after these changes.

Of course I could use Java code that does not care about certificates but I believe that's not a great solution for production. Also we have code in a lot of different places (including JARs) which make HTTPS connection to this URL.

Update 1

This is in error-log-0.xml:

Certificate with subject, OU=Domain Control Validated,, issued by SERIALNUMBER=07969287, CN=Go Daddy Secure Certification Authority, OU=, O=", Inc.", L=Scottsdale, ST=Arizona, C=US, is not trusted. Validation failed with error 3659.

I think this message is quite clear. I also noticed that System.getProperty("") returns null but that happens also in 8.5.3 server where this works. I tried setting the trustStore with setProperty but the error is still the same.

Update 2

It works with Simon's code that uses createSocket. But all our code use, UrlConnection, HttpsUrlConnection or Apache HTTP Client. Some of these are provided by 3rd party as a JAR. We cannot change all those to use createSocket.

Any ideas? Thanks.

share|improve this question
Have you tried enabling debug mode to get more details as to the nature of the failure? eg. System.setProperty("", "ssl"); – Simon O'Doherty May 7 '13 at 7:34
Thanks, that's a good idea. I added that but don't see any additional logging (maybe I don't know where to look). However I found a bit more info when looking at the logs, will update the question. It would be interesting to know if this happens to you also with the above sample code. – Panu Haaramo May 7 '13 at 11:55
You need to set your trust store. Here is some sample code:… – Simon O'Doherty May 7 '13 at 12:48
It's quite a big change if Domino 9 does not use the cacerts keystore by default any more! I've already tried System.setProperty("", "c:/blahblah); System.setProperty("", "pw"); but that did not help. I guess I need to copy paste the whole code from the URL you provided and try with that. – Panu Haaramo May 7 '13 at 12:55
yea, I'd say try that sample code. If that works you can rule out an issue with your certificates. – Simon O'Doherty May 7 '13 at 16:37
up vote 1 down vote accepted

So for Domino 9, as the new feature OpenSocial was added, a lot of functionality was changed around certificates to make it easier to maintain.

As such there is a new API "". What this API does is now check the Domino certificates for the related trusted certificate which is also cross certified against the server certificate.

It checks first in the CACERTS. If it can't find this, then it will check the Domino certificates.

So in order to get the code above to work you need to do the following.

  1. Open the Domino Administrator client and select the ""People and Groups -> Certificates".

    people and groups tab, certificates view

  2. In the actions menu select "Import Internet Certificates".

    menu setting

  3. Select the related certificate file to import using the file dialog. It may ask you for the file structure when importing, so select the correct structure if needed. It should appear in the view once completed.

    View showing certificate imported.

  4. Open the document and from the actions menu select "Create Cross Certificate".

    menu option of create cross certificate

  5. A dialog pops up. You select the certificate and click OK.

    cross certificate dialog

  6. Next dialog make sure you have it set correctly for your server. ie. The right server and certifier. Click Cross Certify when done.

    Issue cross certificate dialog

This should create a cross certificate in the view:

view showing cross certificate

At this point you need to restart the HTTP process with the following commands.

tell http quit 
load http
share|improve this answer
Thanks Simon! Btw. I could not get it to work with CACERTS so for me it looks like it does not check the CACERTS file. – Panu Haaramo Jun 12 '13 at 10:30
It appears it needs a cross certificate created by the Server certificate. So that would need to be in the CACERTS as well. Steps above save you having to import that as well. The earlier steps we were just putting in the GoDaddy certificates alone. If it is still failing in CACERTS with the cross certificate let me know and I'll create an SPR. Cheers! :) – Simon O'Doherty Jun 12 '13 at 11:01
OK thanks! I'm happy with the Domino Directory solution and no need to go back to CACERTS. – Panu Haaramo Jun 12 '13 at 11:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.