NIH | National Cancer Institute | NCI Wiki  

The build or installation of NBIA is known to fail when it reaches the point of pulling required third-party libraries from the Nexus server. This is due to NCI CBIIT having recently improved the transport layer security on the Nexus server by disabling TLSv1.0, which is used by Java 7 and Ant by default. The error that appears is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake.

To resolve this problem, explicitly instruct Java 7 and Ant to use TLSv1.1 and TLSv1.2. The following procedures explain how to configure ANT_OPTS on Windows and Linux systems to work around the SSLHandshake error.

Windows:

  1. Navigate to Control Panel > System > Advanced System Settings > Environment Variables.
  2. In the User Variables section, click New.
  3. Enter the variable name: ANT_OPTS
  4. Enter the variable value: -Dhttps.protocols=TLSv1.1,TLSv1.2            

Linux:

  1. Edit ~/.bashrc or ~/.bash_profile to include the following code:

    ANT_OPTS="-Dhttps.protocols=TLSv1.1,TLSv1.2"
    export ANT_OPTS
  2. To apply the changes, exit the command prompt.
  • No labels