Results 1 to 8 of 8

Thread: QSslSocket hostname mismatch

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    96

    Default Re: QSslSocket hostname mismatch

    Doesn't CN match the IP...they are all test.com == so they are all the same (they have the same IP) ?

    Also, if I create a CA cert and self sign it doesn't application trust it...it should.

    Can you be more specific with this? Can you provide an example?

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

    Default Re: QSslSocket hostname mismatch

    Quote Originally Posted by eleanor View Post
    Doesn't CN match the IP...they are all test.com == so they are all the same (they have the same IP) ?
    $ host test.com
    test.com has address 205.178.152.103

    Is 205.178.152.103 your IP on all sides of the communication (client/server/ca)?

    Also, if I create a CA cert and self sign it doesn't application trust it...it should.
    No, it shouldn't.

    Can you be more specific with this? Can you provide an example?
    I'm not sure what example would you like me to provide I can't teach you SSL in 5 minutes, take a book on SSL or read a tutorial to undestand why a self-signed CA can't be trusted (at least out of the box).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2006
    Posts
    96

    Default Re: QSslSocket hostname mismatch

    $ host test.com
    test.com has address 205.178.152.103

    Is 205.178.152.103 your IP on all sides of the communication (client/server/ca)?
    Well how can I declare the certificate then...it's not possible for 205.178.152.103 to be the IP on all sides of the communication.

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

    Default Re: QSslSocket hostname mismatch

    Unless you have access to a real CA you won't be able to generate a fully valid certificate so it doesn't really matter what you place there. But if you want to be as close to a proper certificate as possible, you have to place a proper common name on the certificate and ignore the "self-signed certificate" warning. This is really not a place for an SSL tutorial, so searching for one might be a better idea than asking about it here.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QSslSocket problem
    By The Storm in forum Qt Programming
    Replies: 5
    Last Post: 23rd March 2008, 13:58

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
  •  
Qt is a trademark of The Qt Company.