Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to get information about the client certificate?

    General and Desktop
    1
    1
    410
    Loading More Posts
    • 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.
    • F
      folov last edited by

      I have code:
      @QSslSocket * serverSocket = new QSslSocket();
      serverSocket->setPrivateKey("some.key");
      serverSocket->setLocalCertificate("some.crt");
      serverSocket->startServerEncryption();
      if(serverSocket->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.

      In the documentation, I found that there is a method serverSocket->peerCertificate(). But I can not get information about the client certificate with this method. Help please.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post