Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It sounds like your mail server is not signed by <code>Go Daddy Class 2 Certification Authority</code>, but is actually signed by one of their intermediate certificate authorities. You will need to verify this for yourself. Assuming this is the case...</p> <p>In theory, your software should work - since the intermediate certificate is signed by the class 2 authority and you have the class 2 authority in the default JDK certificate store. However, I have found that it just does not work unless you also add the intermediate certificate to your certificate store. Here is a link to a blog post describing a similar experience:</p> <p><a href="http://drcs.ca/blog/adding-godaddy-intermediate-certificates-to-java-jdk/" rel="nofollow">http://drcs.ca/blog/adding-godaddy-intermediate-certificates-to-java-jdk/</a></p> <p>Here is a direct link to more GoDaddy intermediate certificates: <a href="https://certs.godaddy.com/anonymous/repository.pki" rel="nofollow">https://certs.godaddy.com/anonymous/repository.pki</a></p> <p>I cannot advise on exactly which certificate you must add - it depends on which CA is used in your mail server.</p> <p>[update]</p> <p><code>is there a way to do this programmically?</code></p> <p>Maybe. Depends on what you want to do. I have used the <code>java.security.KeyStore</code> class to automatically update a private keystore directly from Java code without using <code>keytool</code>. It is conceptually simple - load the keystore from a file, read the new certificate, add it to the keystore and then write out the keystore to new file. However it takes a while to get the details right and it may not be worth the trouble just to import a single certificate.</p> <p>Still, it is interesting to try. Checkout <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyStore.html" rel="nofollow">KeyStore JavaDoc</a> and read up on the <code>load</code>, <code>store</code> and <code>setCertificateEntry</code> methods.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload