Results 1 to 5 of 5

Thread: Example of SSL communication

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Example of SSL communication

    Hi. I'm giving up on the http communication and I'm now trying to use QSslSockets but again I lack short good example of code, for both server and client.
    Does anyone know of such examples (or tutorial?)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Example of SSL communication

    Have you seen the examples that are in the Qt Reference Manual?

  3. #3
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Example of SSL communication

    yes the code samples there I have seen, but not complete examples. Examples that shows all the handshaking etc.

    For example, I have no idea on how to create the certificate either. I just need a simple one.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Example of SSL communication

    Quote Originally Posted by Morea View Post
    Examples that shows all the handshaking etc.
    It's done more or less automatically with the exception of what's explained in QSslSocket::sslErrors()
    For example, I have no idea on how to create the certificate either. I just need a simple one.
    This is out of scope of using QSslSocket. If you want to use a certificate, you have to create it using regular means (i.e. using OpenSSL commands), it's not something that is done automatically and that's on purpose.

  5. #5
    Join Date
    Dec 2008
    Posts
    29
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Example of SSL communication

    try this: http://www.qtsoftware.com/products/a...es/qtsslsocket

    ..but it is a little bit older and needs some work at.. QtSslSocket => QSslSocket etc.

Similar Threads

  1. serial communication problem
    By Tavit in forum Qt Programming
    Replies: 3
    Last Post: 31st May 2008, 13:56
  2. Data communication between multiple computers
    By AlbertGoodwill in forum Newbie
    Replies: 2
    Last Post: 8th October 2007, 14:44
  3. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 19:18
  4. How to transfer file through serial communication
    By shamik in forum Qt Programming
    Replies: 29
    Last Post: 29th May 2007, 11:22
  5. Threads communication
    By probine in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2006, 15:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.