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. How to get information about the client certificate?
Forum Updated to NodeBB v4.3 + New Features

How to get information about the client certificate?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 533 Views 1 Watching
  • 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 Offline
    F Offline
    folov
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved