Mailbox Integration IMAP throw an error
We have an account that works with other applications but with YouTrack it fails with the following error.
Also in other products we are allowed to set the encrpytion mode to SSL whereas with your product there is no option available.
- 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.
Please sign in to leave a comment.
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
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.
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).
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.