Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    3
    11
    4401
    Loading More Posts
    • 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.
    • V
      Vadi2 last edited by Vadi2

      I'm getting the following error when trying to download an https page when running from Qt Creator on Ubuntu 18.04: Error creating SSL context (error:140A90C4:SSL routines:func(169):reason(196))

      The same code runs fine when deployed with the ssl libs included and so on.

      How can I fix it for my debug builds?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • V
          Vadi2 last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • V
              Vadi2 last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • V
                  Vadi2 last edited by

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

                  aha_1980 1 Reply Last reply Reply Quote -1
                  • aha_1980
                    aha_1980 Lifetime Qt Champion @Vadi2 last edited by

                    @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 Reply Quote 1
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      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 Reply Quote 1
                      • V
                        Vadi2 last edited by

                        Installing OpenSSL 1.0.x did not solve the issue.

                        1 Reply Last reply Reply Quote 0
                        • V
                          Vadi2 last edited by

                          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 Reply Quote 0
                          • First post
                            Last post