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. Use QSslSocket instead of QTcpSocket

Use QSslSocket instead of QTcpSocket

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 407 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.
  • _ Offline
    _ Offline
    __d4ve__
    wrote on last edited by
    #1

    Hi ,

    I want to implement QSslSocket instead of QTcpSocket , as far as I understand I need to create
    "certs/client.key";
    "certs/client.crt";
    How do I do that inside application not relaying on openssl or if so is there any module or class I can use for such case ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The need for a custom client key depends highly on what your application does. So before embarking on that road, what are you needing it for ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        __d4ve__
        wrote on last edited by
        #3

        I use QTcpSocket to connect to server
        additionally to the created connection I created heartbeat mechanism
        I want to encrypt the heartbeat messages

        1 Reply Last reply
        0
        • _ Offline
          _ Offline
          __d4ve__
          wrote on last edited by
          #4

          I can use QSslKey key = QSslKey::generate(QSslKey::Rsa, 2048);
          but it still creates files , I have to create external files to use SSL connection?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Where do you have that generate from ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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