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. Cannot provide a certificate with no key Qt 5.7 on iOS

Cannot provide a certificate with no key Qt 5.7 on iOS

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 824 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
    Marek
    wrote on last edited by
    #1

    Hi all,

    I can't load key for certificate on Qt 5.7
    I'm testing on mac OS Sierra, iOS Simulator, Xcode 8.1

    I have an app that uses Qt 5.4.1 with custom openssl compiled for iOS.
    Now I'm trying to switch to Qt 5.7 and to ssl API provided by iOS (so my life would be easier on AppStore)

    Old setup with compiled Qt 5.4.1 and openssl linked works
    New setup with Qt 5.7 installed from unified installer - doesn't work - can't load ssl key.

    socket-setPrivateKey(QString(":/path/to/key.key"),QSsl::Rsa,QSsl::Pem,QByteArray("pass"));
    

    works but then if I check

    QSslKey key=socket->privateKey();
    qDebug()<<"key is null:"<<key.isNull();
    

    key is null: true
    So certificate can't be loaded and I got error: "Cannot provide a certificate with no key"

    I'm using the same piece of code with Qt 5.7 on Andoid and Linux, so it looks like just the problem on iOS

    Best Regards
    Marek

    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