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



  • 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.


  • Lifetime Qt Champion

    Hi,

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



  • 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.


  • Lifetime Qt Champion

    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.



  • Hi,

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

    Thanks for help,
    R.



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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.