Could Not Convert Socket to TLS

Could Not Convert Socket to TLS

ISSUE

When the system tries to send email, it results in an error "Could not convert socket to TLS".

The Email debug in the 8090 Console shows:

INFO  (08/21) 12:17:57 [stdout]: STARTTLS
INFO  (08/21) 12:17:57 [stdout]: 220 Ready to start TLS
ERROR (08/21) 12:17:57 [com.stoneware.service.Mail]: Unable to send mail.
javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


SOLUTION

With the release of UW 6.5.6.13, STARTTLS support was added to the Mail Service.  Now the system will automatically check to see if the SMTP server supports STARTTLS and will begin the negotiation process to upgrade the connection to using TLS.

The error is stating that Java is unable to validate the SSL Certificate used by the SMTP server.  This can be caused by the SMTP server utilizing a self-signed certificate, where a matching root certificate does not exist in Java's cacerts keystore.  (Java's security is extremely strict with needing to be able to validate the server certificate.)

To correct the issue, one of two options can be tried:
  • Disable STARTTLS on the SMTP server.
  • Fix the certificate issue.
    • If using a self-signed cert, try importing the root certificate that signed your email server's certificate into the Java cacerts keystore used by the UW servers.
      "c:\stoneware\jre\lib\security\cacerts" (Oracle-provided default passphrase is "changeit").
      This would need to be done on all of the UW servers.
    • Install a CA-signed certificate, on the SMTP server, that will have an associated root certificate in the Java cacerts file on the UW servers.

    Can't find the KB

    Unable to find the KB to address your issue ?  

      • Recent Articles

      • Change Reset Password Button Text

        Change the text of the "Reset Password" button on the UW Login Page How to change the text of the Reset Password button on the Login Page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants ...
      • Remove Reset Password Button From Login Page

        Remove the Reset Password Button from the Login Page How to remove the Reset Password button from the Unified Workspace login page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants Expand ...
      • Lenovo Unified Workspace End-of-Life Questions and Answers

        As of January 31st 2024, Lenovo Unified Workspace (formerly Stoneware WebNetwork) is no longer supported. This means that we no longer provide licenses, downloads, updates, patches, or technical assistance for this product. If you have any questions ...
      • How do I determine my Unified Workspace license expiration date?

        The best method for determining the licensing information including the expiration date of your Unified Workspace license: Login to your 8090 management console on each server This may take remoting into each LUW server and relay, opening a browser, ...
      • Lenovo Unified Workspace 7.0.2.13 Released

        Highlights of Unified Workspace 7.0.2.13 Before you install: Please view the installation notes here. 7.0.2.13 requires a 7.0 license file. Below is a list of enhancements and fixes released in Unified Workspace 7.0.2.13 Fixed external storage ...