QNetworkAccessManager and client certificate
-
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.