Java application intermittently fails to connect to outlook.office365.com over IMAPS/SMTP/POP3
Issue
- Java application intermittently fails to connect to Outlook server with the following error:
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
- With the Red Hat build of Open JDK 11 on a RHEL server a connection to outlook.office365.com over via IMAPS (TCP/993) fails with the following error:
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
- JavaMail is swallowing ssl debug logging and failing to connect to
outlook.office365.com:
ERROR stderr - javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
Environment
- Red Hat build of OpenJDK
- outlook.office365.com
- IMAP, SMTP, POP3
- TLS 1.0
- cipher suite ECDHE-RSA-AES256-SHA384
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.