Page MenuHomePhabricator

XNAT connection failes due to missing OpenSSL connections
Closed, ResolvedPublic

Assigned To
Authored By
kleina
Jul 3 2019, 3:06 PM
Referenced Files
F1653167: libcrypto-1_1.dll
Jul 3 2020, 3:36 PM
F1653166: libssl-1_1.dll
Jul 3 2020, 3:36 PM
F1384410: ssleay32.dll
Jul 3 2019, 3:10 PM
F1384411: libeay32.dll
Jul 3 2019, 3:10 PM

Description

The XNAT plugin needs OpenSSL to successfully connect to XNAT. If it is not available, the following error message is displayed:

Connection failed:
Invalid Server Adress
Possibly due to missing OpenSSL for HTTPS connections

Event Timeline

kleina triaged this task as Normal priority.Jul 3 2019, 3:06 PM
kleina created this task.

This issue can be solved by copying the following DLLs to the exe path of the workbench:

libeay32.dll
ssleay32.dll

Make sure the DLLs match the QT version used in your MITK installer. For QT 5.11, we currently use OpenSSL 1.0.2g
The OpenSSL version can be found on the QT website.

kleina closed this task as Resolved.EditedJul 3 2019, 3:10 PM

Here are the DLLs we used for the BlackSwan demo.

Other versions of OpenSSL can be found here: https://bintray.com/vszakats/generic/openssl

For Qt 5.12.5 it is OpenSSl 1.1.1

Caution: They chaneg the names of the dlls! It is now the following ones:

kislinsk reopened this task as Open.EditedNov 30 2020, 2:51 PM
kislinsk claimed this task.
kislinsk edited projects, added MITK (v2021.02), Noteworthy; removed MITK.
kislinsk added a subscriber: kislinsk.

It is not acceptable that there is a hidden manual process involved. There's legacy code in the XNAT plugin's CMakeLists.txt that tries to do that automatically but fails as it copies/installs the wrong files. To make the whole thing more visible, I will add the following two CMake cache variables to set the two DLLs. Manual copying and installing shouldn't be neccessary anymore then.

  • MITK_OPENSSL_SSL_DLL
  • MITK_OPENSSL_CRYPTO_DLL

BTW, OpenSSL is included in the Qt installer/maintenance tool. You find it under "Tools".

Deleted branch bugfix/T26449-XNAT-OpenSSL.