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 is the best way to Test a SSL connection on his local computer ..
Qt 6.11 is out! See what's new in the release blog

How is the best way to Test a SSL connection on his local computer ..

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.5k Views 2 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.
  • R Offline
    R Offline
    Ritchie
    wrote on last edited by
    #1

    Hello,

    I need a secure TCP/IP connection between a server and a client to transfer information.
    What is the best way to create and simulation such a connection on a local computer (cerificates and so on)?

    Best regards
    R.

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

      Hi,

      What are you testing ? Just the secure connection part ? Client certificate validation ?
      What is the server running ?

      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
      • R Offline
        R Offline
        Ritchie
        wrote on last edited by
        #3

        Hi,

        I need a secure connection between my own server and client.

        I already have prepared both Software parts, but i have problems with the simulation.

        Can i use a already created certificate on my locale computer for testing or do i have
        Create a separate on for the simulation.

        Best regards
        R.

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

          One possible way to simulate your server would be to run it in e.g. a Docker container. So you can have it running as if it would be deployed but still on your local machine.

          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
          1
          • R Offline
            R Offline
            Ritchie
            wrote on last edited by
            #5

            Hi,

            a "Docker container" is new for me. I have to take a close look into this.

            Thanks for help,
            R.

            1 Reply Last reply
            0
            • Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @Ritchie I'd suggest having a mock server that you can control at will.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              1
              • R Offline
                R Offline
                Ritchie
                wrote on last edited by
                #7

                Hi,
                I found a way to use the local host only for testing the SSL connection. There was a certificate for "local host" (client and server) in the sample code I use as a base for my code and it works as well.
                And here I noticed my problem with the self registered certificate, which I have to ignore the error during the connection. By the way, I am using Ubuntu.
                Best regards
                R.

                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