Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkAccessManager and client certificate

QNetworkAccessManager and client certificate

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 270 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.
  • K Offline
    K Offline
    Kai Hietala
    wrote on last edited by Kai Hietala
    #1

    Hi,

    I'm trying to access REST api that requires the use of client certificate. I'm using Qt5.15 on Windows 10 platform.

    Is there a way to access the "Certificate request" header (or whatever it is) to know what certificate the server requires?

    I'm assuming that I can input the required certificate in the QNetworkAccessManager::encrypted signal, but just can't figure out which certificate to query from windows...

    Best Regards,

    -Kai

    [Update] Like the documentation says, the QNetworkAccessManager::encrypted is too late so the certificate has to be set before making the request (at least that is how it behaved when I tried). So I have to parameterize the certificate selection.

    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