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. Android certificate error

Android certificate error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 850 Views
  • 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
    MartinD
    wrote on last edited by
    #1

    Hi,
    I use: Qt 5.7.0 for Android, android-24, I'm testing on devices with Android 6.0

    I make a QNetworkRequest to https resource. Qt returns these errors when executing the QNetworkRequest.

    The host name did not match any of the valid hosts for this certificate
    The root certificate of the certificate chain is self-signed, and untrusted

    The https server uses Let's Encrypt certificate.

    Standalone browser on Android 6.0 or 5.0 device or Windows is able to get the https resource without showing any certificate error, and also my app works on Android 5.0 devices and also on Windows.

    What can I do with this error?

    1 Reply Last reply
    0
    • GTDevG Offline
      GTDevG Offline
      GTDev
      wrote on last edited by
      #2

      Hi!

      Does this only happen when accessing a https resource or also for plain http calls?
      And are other https:// resources working or does https not work at all?

      If https requests generally do not work, you are probably missing the required SSL libraries to make https:// calls.
      For Android, it is currently needed to manually package the SSL library as described here: http://doc.qt.io/qt-5/opensslsupport.html.

      In case you want to create a QML-based mobile App, you can also have a look at V-Play Engine.
      With V-Play you can avoid having to build and provide SSL for Android, V-Play has SSL for Android already bundled since version 2.10.0.

      Cheers,
      GT

      Senior Developer at Felgo - https://felgo.com/qt

      Develop mobile Apps for iOS & Android with Qt
      Felgo is an official Qt Technology Partner

      1 Reply Last reply
      2

      • Login

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