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 829 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.
  • M Offline
    M Offline
    Mucip
    wrote on 22 Nov 2020, 22:57 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:)

    J 1 Reply Last reply 23 Nov 2020, 05:48
    0
    • M Mucip
      23 Nov 2020, 08:11

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

      Regards,
      Mucip:)

      P Offline
      P Offline
      Pradeep P N
      wrote on 23 Nov 2020, 09:42 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.

      M 1 Reply Last reply 23 Nov 2020, 09:45
      1
      • M Mucip
        22 Nov 2020, 22:57

        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:)

        J Online
        J Online
        jsulm
        Lifetime Qt Champion
        wrote on 23 Nov 2020, 05:48 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

        M 1 Reply Last reply 23 Nov 2020, 08:11
        0
        • J jsulm
          23 Nov 2020, 05:48

          @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?

          M Offline
          M Offline
          Mucip
          wrote on 23 Nov 2020, 08:11 last edited by
          #3

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

          Regards,
          Mucip:)

          J P 2 Replies Last reply 23 Nov 2020, 08:15
          0
          • M Mucip
            23 Nov 2020, 08:11

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

            Regards,
            Mucip:)

            J Online
            J Online
            jsulm
            Lifetime Qt Champion
            wrote on 23 Nov 2020, 08:15 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
            • M Mucip
              23 Nov 2020, 08:11

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

              Regards,
              Mucip:)

              P Offline
              P Offline
              Pradeep P N
              wrote on 23 Nov 2020, 09:42 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.

              M 1 Reply Last reply 23 Nov 2020, 09:45
              1
              • P Pradeep P N
                23 Nov 2020, 09:42

                @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.

                M Offline
                M Offline
                Mucip
                wrote on 23 Nov 2020, 09:45 last edited by
                #6

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

                Regards,
                Mucip:)

                P 1 Reply Last reply 23 Nov 2020, 09:49
                0
                • M Mucip
                  23 Nov 2020, 09:45

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

                  Regards,
                  Mucip:)

                  P Offline
                  P Offline
                  Pradeep P N
                  wrote on 23 Nov 2020, 09:49 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.

                  M 2 Replies Last reply 23 Nov 2020, 09:51
                  1
                  • P Pradeep P N
                    23 Nov 2020, 09:49

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

                    M Offline
                    M Offline
                    Mucip
                    wrote on 23 Nov 2020, 09:51 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
                    • P Pradeep P N
                      23 Nov 2020, 09:49

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

                      M Offline
                      M Offline
                      Mucip
                      wrote on 23 Nov 2020, 10:07 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

                      1/9

                      22 Nov 2020, 22:57

                      • Login

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