Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. SSL support for Android
Forum Updated to NodeBB v4.3 + New Features

SSL support for Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 3 Posters 847 Views 1 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.
  • MucipM Offline
    MucipM Offline
    Mucip
    wrote on last edited by
    #1

    Hi,
    I'm using Qt 5.14.2 on Win10.

    I create little Qt/QML Android program which use https request from internet.

    When I run it on Windows it works because I add Qt openSSL bin directory to path. I added below code to my program.

    qDebug()<<"----"<<QSslSocket::sslLibraryBuildVersionString();
    qDebug()<<"----"<<QSslSocket::sslLibraryVersionString();
    

    And the console output is on Win10

    ---- "OpenSSL 1.1.1d  10 Sep 2019"
    ---- "OpenSSL 1.1.1d  10 Sep 2019"
    

    But When I run the program on Android the console output is:

    D libMobilApt_armeabi-v7a.so: ---- "OpenSSL 1.1.1d  10 Sep 2019"
    D libMobilApt_armeabi-v7a.so: ---- ""
    

    I have OpenSSL configurtion on QtCreator Devices>>Abdroit tab like below:
    63bdb164-59e8-45ee-b191-23b11067fc53-resim.png

    Well, what should I do now?

    Regards,
    Mucip:)

    jsulmJ 1 Reply Last reply
    0
    • MucipM Mucip

      Hi @jsulm ,
      Is there any document or tutorial about this?

      Regards,
      Mucip:)

      Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by Pradeep P N
      #5

      @Mucip
      You can also directly add the external libs as below with Add button ( Kind of easy way which i use ).
      This worked for me.

      Project -> Build Settings -> Build Steps
      Under Build Android APK -> Additional libraries
      

      Where you can Add / Remove the libs

      960d2c71-12f0-43cb-8f0c-ea781645be71-image.png

      All the best.

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      MucipM 1 Reply Last reply
      1
      • MucipM Mucip

        Hi,
        I'm using Qt 5.14.2 on Win10.

        I create little Qt/QML Android program which use https request from internet.

        When I run it on Windows it works because I add Qt openSSL bin directory to path. I added below code to my program.

        qDebug()<<"----"<<QSslSocket::sslLibraryBuildVersionString();
        qDebug()<<"----"<<QSslSocket::sslLibraryVersionString();
        

        And the console output is on Win10

        ---- "OpenSSL 1.1.1d  10 Sep 2019"
        ---- "OpenSSL 1.1.1d  10 Sep 2019"
        

        But When I run the program on Android the console output is:

        D libMobilApt_armeabi-v7a.so: ---- "OpenSSL 1.1.1d  10 Sep 2019"
        D libMobilApt_armeabi-v7a.so: ---- ""
        

        I have OpenSSL configurtion on QtCreator Devices>>Abdroit tab like below:
        63bdb164-59e8-45ee-b191-23b11067fc53-resim.png

        Well, what should I do now?

        Regards,
        Mucip:)

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Mucip said in SSL support for Android:

        Well, what should I do now?

        I guess you have to deploy OpenSSL libs together with your app to the device?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        MucipM 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Mucip said in SSL support for Android:

          Well, what should I do now?

          I guess you have to deploy OpenSSL libs together with your app to the device?

          MucipM Offline
          MucipM Offline
          Mucip
          wrote on last edited by
          #3

          Hi @jsulm ,
          Is there any document or tutorial about this?

          Regards,
          Mucip:)

          jsulmJ Pradeep P NP 2 Replies Last reply
          0
          • MucipM Mucip

            Hi @jsulm ,
            Is there any document or tutorial about this?

            Regards,
            Mucip:)

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Mucip https://doc.qt.io/qt-5/android-openssl-support.html

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • MucipM Mucip

              Hi @jsulm ,
              Is there any document or tutorial about this?

              Regards,
              Mucip:)

              Pradeep P NP Offline
              Pradeep P NP Offline
              Pradeep P N
              wrote on last edited by Pradeep P N
              #5

              @Mucip
              You can also directly add the external libs as below with Add button ( Kind of easy way which i use ).
              This worked for me.

              Project -> Build Settings -> Build Steps
              Under Build Android APK -> Additional libraries
              

              Where you can Add / Remove the libs

              960d2c71-12f0-43cb-8f0c-ea781645be71-image.png

              All the best.

              Pradeep Nimbalkar.
              Upvote the answer(s) that helped you to solve the issue...
              Keep code clean.

              MucipM 1 Reply Last reply
              1
              • Pradeep P NP Pradeep P N

                @Mucip
                You can also directly add the external libs as below with Add button ( Kind of easy way which i use ).
                This worked for me.

                Project -> Build Settings -> Build Steps
                Under Build Android APK -> Additional libraries
                

                Where you can Add / Remove the libs

                960d2c71-12f0-43cb-8f0c-ea781645be71-image.png

                All the best.

                MucipM Offline
                MucipM Offline
                Mucip
                wrote on last edited by
                #6

                Hi @Pradeep-P-N
                Where can I find these libraries which you add in shown in picture?

                Regards,
                Mucip:)

                Pradeep P NP 1 Reply Last reply
                0
                • MucipM Mucip

                  Hi @Pradeep-P-N
                  Where can I find these libraries which you add in shown in picture?

                  Regards,
                  Mucip:)

                  Pradeep P NP Offline
                  Pradeep P NP Offline
                  Pradeep P N
                  wrote on last edited by Pradeep P N
                  #7

                  @Mucip
                  You need libssl & libcrypto for OpenSSL (Hoping you have it) Android, ignore the other thing in my image.

                  Pradeep Nimbalkar.
                  Upvote the answer(s) that helped you to solve the issue...
                  Keep code clean.

                  MucipM 2 Replies Last reply
                  1
                  • Pradeep P NP Pradeep P N

                    @Mucip
                    You need libssl & libcrypto for OpenSSL (Hoping you have it) Android, ignore the other thing in my image.

                    MucipM Offline
                    MucipM Offline
                    Mucip
                    wrote on last edited by
                    #8

                    @Pradeep-P-N ,
                    My setting page like below but still same problem:
                    6c7fbaf8-5803-4958-bb40-342bd938f577-resim.png

                    How can I check that I have libssl and if not, where can I fint it?

                    Regards,
                    Mucip:)

                    1 Reply Last reply
                    0
                    • Pradeep P NP Pradeep P N

                      @Mucip
                      You need libssl & libcrypto for OpenSSL (Hoping you have it) Android, ignore the other thing in my image.

                      MucipM Offline
                      MucipM Offline
                      Mucip
                      wrote on last edited by
                      #9

                      Hi @Pradeep-P-N ,
                      I got it sir. ;)

                      I downloaded latest build file from here and add this files to the Additional Libraries like you show in picture.

                      Now everythin is work fine in Android.

                      Regards,
                      Mucip:)

                      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