Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 'Error creating SSL context' when running from inside Qt Creator on Ubuntu 18.04
Forum Updated to NodeBB v4.3 + New Features

'Error creating SSL context' when running from inside Qt Creator on Ubuntu 18.04

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 5.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    You don't give enough informations.

    What version of Qt are you using ?
    What version of OpenSSL are you using ?
    How did you install Qt ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vadi2
      wrote on last edited by
      #3

      All Qt versions are giving this error - 5.9, 5.10, 5.11.

      OpenSSL version 1.1.0g-2ubuntu4.

      I installed Qt from the online installer.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Pre-build version of Qt are using OpenSSL1.0.X.

        Since 5.10 there's a backend for the 1.1 series but it's not enabled by default because the oldest versions of Linux supported don't have OpenSSL 1.1.X.

        Also OpenSSL 1.1.X broke both API and ABI compatibly with the 1.0.X series.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • V Offline
          V Offline
          Vadi2
          wrote on last edited by
          #5

          How can I enable that backend for Qt to work right on the LTS release of the biggest Linux desktop distro?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            For that you have to build Qt.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vadi2
              wrote on last edited by
              #7

              Qt had half a year to prepare for this so it's disappointing it has come down to this. :(

              aha_1980A 1 Reply Last reply
              -1
              • V Vadi2

                Qt had half a year to prepare for this so it's disappointing it has come down to this. :(

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Vadi2 said in 'Error creating SSL context' when running from inside Qt Creator:

                Qt had half a year to prepare for this so it's disappointing it has come down to this. :(

                Why don't you blame OpenSSL for breaking source and binary compatibility?!

                Qt has to stay free or it will die.

                1 Reply Last reply
                1
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  To prepare for what ? Switch over to OpenSSL 1.1 ? The code is there and ready to use. However you can't expect the Qt Project to force such a backward incompatible change.

                  Your other solution is to install the OpenSSL 1.0.X package in parallel on your system.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • V Offline
                    V Offline
                    Vadi2
                    wrote on last edited by
                    #10

                    Installing OpenSSL 1.0.x did not solve the issue.

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      Vadi2
                      wrote on last edited by
                      #11

                      A viable workaround is to ditch the online installer altogether and use the qt creator and qt dev headers from Ubuntu.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved