Mailbox Integration IMAP throw an error

We have an account that works with other applications but with YouTrack it fails with the following error.

  • BYE JavaMail Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Also in other products we are allowed to set the encrpytion mode to SSL whereas with your product there is no option available.
6 comments
Comment actions Permalink
Hi Dinesh,
The reason you are observing this is that for some reason a certificate your email server uses to establish SSL is unknown to YouTrack. Please let me know if you're using a self-signed certificate or a certificate signed by a certificate authority. In the former case please add the certificate manually so that YouTrack could trust your email server. Adding a certificate can be done via Administration->SSL Keys Management->Trasted certificates tab.

Regards,
  Alexander
0
Comment actions Permalink
Hello Dinesh,

Sorry for the delay.
The reason of that issue is that certificate of your IMAP server is unkown to YouTrack.
Please, clarify, if you use a self-signed certificate or a certificate signed by a certificate authority.
In general, you can add the certificate manually so that YouTrack could trust your email server (Adminisration-> SSL Keys Management-> Trusted certificates).

Thank you.
0
Comment actions Permalink
I have the exact same problem with an installation here. The mail server is an exchange server 2010 which is configured to allow IMAP and POP3. When i try to connect with the SSL certificate installed into youtrack, i gave me a message "BYE JavaMail Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty". How can we debug that ?
0
Comment actions Permalink
Hello!
C:\%FOLDER%\jre\bin>keytool -importcert -file c:\%CERTFILE% -storepass "changeit" -keystore c:\%FOLDER%\jre\lib\security\cacerts

%FOLDER% - is your YouTrack installation.
%CERTFILE% - certificate of your Exchange (myexch.cer).
0
Comment actions Permalink
It works, thanks.
0
Comment actions Permalink
I'm having a similar problem, in the "Mailbox integration" feature. Plus I have the doubt as to which certificate, if any, to use. On my server I have 2 certificates: one in PKCS #12 format that is based on Web Server certificate template and another in X.509 format.
I'm getting the error: "java.security.cert.CertificateException: Non of the delegates checked the chain successfully" when using IMAPS.
If I use non secure IMAP protocl I get the error: "* BYE JavaMail Exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Non of the delegates checked the chain successfully"
Any suggestions? Thank you.
0

Please sign in to leave a comment.