Hi,
I have Jira 7.4.1 and I'm trying to enable IMAPS, but I'm getting the following error:
Unable to connect to the server at mail.local due to the following exception: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I tried SSLPoke and is ok:
/opt/atlassian/jira/jre//bin/java -Djavax.net.ssl.trustStore=/opt/atlassian/jira/jre/lib/security/cacerts SSLPoke mail.local 993
Successfully connected
/opt/atlassian/jira/jre//bin/java SSLPoke mail.local 993
Successfully connected
I tried the IMAPS from an IMAP client, and it works.
Any idea?
thanks!
Hey! Sorry to hear you're having some trouble - IMAPS is a good goal to achieve.
I haven't used SSLPoke. It looks like an interesting tool! For now though, I'm going to act as though it didn't have success using the Java keystore. (It's possible for instance that your setenv.sh file is configured to use system Java instead of the one that comes bundled with Jira).
Do you know what CA was used to sign your mail server certificate? There are problems with Java accepting widely-used GoDaddy certificates. If GoDaddy is your CA, you'll want to add an intermediary cert to your chain:
Gotcha - that extra info helps. Looks like Comodo says you generally need to add intermediary certificates for their trust chain with Java. The instructions they provide are for doing this with keytool, which you might have already done if you've gone to SSLPoke and it's returning an all-clear.
If this is the case (using keytool), did you restart Jira? The trust store loads when the application starts, so based on what you got from SSLPoke, restarting Jira might resolve your error.
If that's no good, I'd also try and go the other direction and add the intermediary certificates from Comodo to what's loaded in your web server. The process for adding to Java's trust store is well-documented, but suffers not consistently working. It also doesn't survive Jira upgrades, so if you can possibly fix it on the mail server side, that's the best way to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you Daniel!,
restarting Jira did the trick (didn't expect that needed to be restarted only because I added a certificate to the default keystore).
cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.