Results 1 to 2 of 2

Thread: Android & OpenSSL

  1. #1
    Join Date
    May 2011
    Posts
    77
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Android & OpenSSL

    Yeah, I've been reading and researching and compiling and recompiling... and still getting SSL errors since upgrading to 5.12x

    My config:
    Qt Creator 4.9.2
    Based on Qt 5.12.4 (Clang 10.0 (Apple), 64 bit)
    Built on Jun 26 2019 11:30:44
    From revision 8181363fa9

    Compiling against NDK 19c

    QSslSocket::sslLibraryBuildVersionString() returns "OpenSSL 1.1.1b 26 Feb 2019"

    I've used the link provided at: https://doc.qt.io/qt-5/android-openssl-support.html:

    https://github.com/KDAB/android_openssl

    To grab the latest OpenSSL (but 1.1.1b instead of 1.1.1c).... rebuild, rebuild, clean, rebuild... and I still get this when accessing HTTPS files:

    Qt Code:
    1. E linker : library "/system/lib/libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/org.qtproject.example.markFinder-F4cbyaIXcBlklUMR3Eav2w==/lib/arm64/libQt5Core.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/org.qtproject.example.markFinder-F4cbyaIXcBlklUMR3Eav2w==/lib/arm64:/data/app/org.qtproject.example.markFinder-F4cbyaIXcBlklUMR3Eav2w==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/org.qtproject.example.markFinder"]
    To copy to clipboard, switch view to plain text mode 
    And:

    Qt Code:
    1. W btstWx_map: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
    To copy to clipboard, switch view to plain text mode 

    Anyone have any ideas why?!

  2. #2
    Join Date
    May 2011
    Posts
    77
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Android & OpenSSL

    Biggest question out of this is... why is it looking for the native SSL? Well, when I run:

    Qt Code:
    1. jar -tvf android_build_debug.apk | grep libssl
    To copy to clipboard, switch view to plain text mode 
    (to search the apk for any SSL references)... I get NOTHING returned.

    So then, WHY is QT not building my ssl & crypto into the apk???

Similar Threads

  1. PSA for developers using OSX who need OpenSSL support in an Android app
    By Urthas in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th August 2017, 20:22
  2. Server connection problem using OpenSSL with android
    By klaarx in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 27th June 2017, 18:46
  3. Replies: 2
    Last Post: 21st August 2014, 20:36
  4. Replies: 4
    Last Post: 10th July 2014, 16:22
  5. How do you make android applications display correctly on android phone?
    By Cyrebo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 17th August 2013, 08:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.