I'm trying to solve this problem for more than a day or even a week. I ask you to give me at least an idea or solution. Please do not give me links to the documentation, I have learned it by heart. Now the question:
QSslSocket * server = new QSslSocket();
server->setPrivateKey("my.key");
server->setLocalCertificate("my.crt");
server->startServerEncryption();
if(server->waitForEncrypted()) {
...
}
In this case I use a const key and certificate. I would like to receive information about the client's certificate and install it on the basis of different keys and certificates for the connection.
For example, the client was using the same certificate and I use the key that corresponds to this certificate.
I tried to use the method of peer Certificate (), but returns void.
How can I get information about the client's certificate, which he uses. Perhaps there is a way to pick up this certificate. How to do it?